angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Why angular cli ng build --watch command don't work like webpack with hot module replacement

Open alex2sorin opened this issue 8 years ago • 4 comments

If I run ng build --watch, angular cli updates my code but I need to refresh page every time to see the new changes, With webpack and hmr page is updated without refreshing and without to do something.

alex2sorin avatar Aug 08 '18 12:08 alex2sorin

I don't use ng serve, only ng build because I use static files from dist folder.

alex2sorin avatar Aug 09 '18 05:08 alex2sorin

ng build solely builds files and places them in the output folder. It does not serve them or communicate with a web browser in any way. This is the function of ng serve which is designed specifically to provide the functionality requested.

clydin avatar Aug 10 '18 00:08 clydin

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.