Webpack Dev Middleware keeps rebuilding my typescript when I recompile my back end code and reload the page #141

Closed
opened 2025-08-09 17:15:09 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @eugene159 on 3/7/2018

I have a huge Angular project set up in Visual Studio. I enabled hot module replacement following the instructions.

app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions {
HotModuleReplacement = true
});

Now every time I run my project with CTRL-F5 my typescript is being rebuilt. This significantly slows down application start. I don't want to rebuild it every time. I want to run webpack in watch mode myself and rebuild it only when typescript files change. It even rebuilds dev build when I run production build manually with webpack. This drives me crazy. Is it possible to disable auto-rebuild ?

*Originally created by @eugene159 on 3/7/2018* I have a huge Angular project set up in Visual Studio. I enabled hot module replacement following the instructions. app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions { HotModuleReplacement = true }); Now every time I run my project with CTRL-F5 my typescript is being rebuilt. This significantly slows down application start. I don't want to rebuild it every time. I want to run webpack in watch mode myself and rebuild it only when typescript files change. It even rebuilds dev build when I run production build manually with webpack. This drives me crazy. Is it possible to disable auto-rebuild ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#141
No description provided.