Angular Cli - How To Disable Auto Reload When Ng Serve


Answer :

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

It used to not work, this PR solved it.


serve your application with this command:

ng serve --live-reload=false 

if you want to run your application in prod mode, use following command

ng serve --source-map=false --aot --prod --live-reload=false 

I think you only want to disable the rebuild on change option

Just try:

$ ng serve --watch=true|false 

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable