Angular cli - how to disable auto reload when ng serve

maxbellec picture maxbellec · Sep 19, 2016 · Viewed 62.8k times · Source

When serving my app with the Angular cli, how do I disable auto-reload?

ng --help mentions the --live-reload option, but I can't make it work.

ng serve --live-reload=false or ng serve --live-reload false do not work

EDIT : it seems to be a bug https://github.com/angular/angular-cli/issues/1755

Answer

maxbellec picture maxbellec · Sep 19, 2016

Just do ng serve --live-reload false or ng serve --no-live-reload

It used to not work, this PR solved it.