Why angular cli ng build --watch command don't work like webpack with hot module replacement
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.
I don't use ng serve, only ng build because I use static files from dist folder.
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.
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.