我使用grunt serve在代码更改后自动重新加载网站。
但我的应用程序现在相当大,我想通过禁用语法检查来加快页面重新加载的速度。
可以使用Yeoman和Grunt吗?我该怎么做?
发布于 2014-11-11 20:31:49
您需要在Gruntfile.js中注册或更改现有任务,因此您需要执行以下操作:
grunt.task.registerTask('serve', [
// other tasks you possibly wanna run like syntax - checking
// remove everything also jshint
'serve'
]);这样做只会运行serve,不管怎样,你需要提供更多的信息+代码样本来获得适当的帮助,你提供的信息就是你能得到的全部!
https://stackoverflow.com/questions/26861291
复制相似问题