cgross / generator-cg-angular15

Yeoman Generator for Enterprise Angular 1.5 Projects with Typescript, Webpack, and Sass.
MIT License
33 stars 3 forks source link

live reload not working #6

Open rbosneag opened 7 years ago

rbosneag commented 7 years ago

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?

rbosneag commented 7 years ago

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.