简体   繁体   English

Grunt HTML验证插件

[英]Grunt html validation plugin

I have installed grunt html validation plugin Link 我已经安装了grunt html验证插件链接

Registered task. 已注册的任务。

But have error when i call this task from command link 但是从命令链接调用此任务时出错

error like this 这样的错误

Network error re-validating.. 1

My register task look likes: 我的注册任务如下所示:

    validation: {
        files: {
            src: ['dist/index.html']
        }
    }
grunt.loadNpmTasks('grunt-html-validation');

    grunt.registerTask('default', ['validation']);

Refer to this issue . 请参阅此问题 In short: the plugin is unusable now. 简而言之:该插件现在无法使用。

You can use grunt-w3c-html-validation plugin instead of it. 您可以使用grunt-w3c-html-validation插件代替它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM