how to stop using livereload.js in my MEAN app

2019-08-31 13:52发布

问题:

I have moved my dev MEAN app from my laptop onto Azure. I have set off of grunt's livereload flags to false, but, livereload.js is still being loaded, and its absolutelly killing me! It take like 30 seconds(!) waiting for livereload.js Is there a way to get rid of it altogether?

回答1:

Steps to fully remove livereload in your app if running in development mode:

  1. Disable it in gruntfile by giving options.livereload = false for your watch task.
  2. Uncomment the script request from your html file. In your case, livereload is being requested by app/views/layout.server.view.html.