Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

105
Visualizações
ASP.NET MVC 4 WebApp using bundles

In my company, there's a ASP.NET WebApp that uses ASP.NET MVC Bundles and by that I mean this.

public static void RegisterBundles(BundleCollection bundles)
{
    bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                 "~/Scripts/jquery-{version}.js"));

    // Code removed for clarity.
    BundleTable.EnableOptimizations = true;
}

When I'm working on the app, and I change a piece of typescript, I need to stop the application and start it again so MVC will compile TS and turn it into JS

My question is, is there anyway I can turn TS into JS and refresh the page I'm looking at so my changes will be taken and I can debug the new changes in my browser without having to restart the whole application

PS I turn off "EnableOptimizations" option so instead of getting minified everything is just in 1 file

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There is a great article about using Live Reload and Browser Sync to be able to recompile on the fly. Keep in mind that since you're using TypeScript and it has to be compiled into physical JS files, you'll need a solution like this until Microsoft puts out its own feature to be able to live reload compiled code.

This article assumes you are using ASP.NET Core, by the way, not ASP.NET Framework.

https://weblog.west-wind.com/posts/2019/May/18/Live-Reloading-Server-Side-ASPNET-Core-Apps

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda