generator-cg-angular15
generator-cg-angular15 copied to clipboard
live reload not working
While accessing the app on localhost:8080
the webpack-dev-server
is watching for changes and apparently updates the bundle but the browser does not refresh when the bundle is ready. If I manually refresh the browser I can see the changes but this is not what we want.
If I access the app through http://localhost:8080/webpack-dev-server/
live reload works but we get an extra <div class="header">
showing server status and this breaks the UI.
Am I doing something wrong?
I looked into HMR and options like --hot
or --inline
or setting serve folders but I thought live reloading should work out of the box (as per Readme) so maybe there is something wrong in the basic setup (nothing added to the generated app) or maybe there is an undocumented step that I don't know of.