Search code examples
angularangular-cli

angular-cli ng serve --- how can i stop its regular refresh


After running ng serve,the browser will regularly refresh and the page will be reloaded.How can I stop it,so that I can debug.I see that it is the result of 'Websocket',so what configuration can i make to stop this regularly refresh.


Solution

  • You can use ng serve --live-reload=false

    See here for more options you can provide to the command:

    https://angular.dev/cli/serve