Search code examples
node.jsmean-stackmeanjs

how to stop using livereload.js in my MEAN app


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?


Solution

  • 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.