如何在我的MEAN应用中停止使用livereload.js [英] how to stop using livereload.js in my MEAN app
本文介绍了如何在我的MEAN应用中停止使用livereload.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已将我的dev MEAN应用程序从笔记本电脑移至Azure. 我已经将grunt的livereload标志设置为false,但是livereload.js仍在加载中,这绝对杀死了我! 等待livereload.js大约需要30秒(!) 有办法完全摆脱它吗?
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?
推荐答案
如果以development
模式运行,则完全删除应用中的livereload
的步骤:
Steps to fully remove livereload
in your app if running in development
mode:
-
通过在
- 取消注释html文件中的脚本请求.您的情况是
app/views/layout.server.view.html
正在请求livereload.
gruntfile
中为您的 watch 任务提供options.livereload = false
来禁用它.
- Disable it in
gruntfile
by givingoptions.livereload = false
for your watch task. - Uncomment the script request from your html file. In your case, livereload is being requested by
app/views/layout.server.view.html
.
这篇关于如何在我的MEAN应用中停止使用livereload.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文