Grunt服务,如何在更改文件中的代码后禁用语法代码检查

Grunt serve, how to disable syntax code checking after change the code in file?

本文关键字:代码 检查 语法 文件 服务 Grunt      更新时间:2023-09-26

我使用grunt serve在代码更改后自动重新加载网站。

但我的应用程序现在相当大,我想通过禁用语法检查来加快页面的重新加载。

有可能使用约曼和格兰特吗?我该怎么做?

您需要从Gruntfile.js注册或更改现有任务,因此您需要以下内容:

grunt.task.registerTask('serve', [
        // other tasks you possibly wanna run like syntax - checking
        // remove everything also jshint
        'serve'
    ]);

这样做只会运行服务,无论如何,你需要提供更多的信息+代码示例来获得适当的帮助,你提供的信息就是你所能得到的!