Angular cli - how to disable auto reload when ng serve

前端 未结 4 1586
日久生厌
日久生厌 2021-02-01 00:25

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.

4条回答
  •  终归单人心
    2021-02-01 00:33

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

    Just try:

    $ ng serve --watch=true|false
    

提交回复
热议问题