grunt-html-validate

Grunt task for html-validate


Keywords
gruntplugin, html, html-validate, lint, grunt
License
MIT
Install
npm install grunt-html-validate@3.0.0

Documentation

grunt-html-validate

Validate files with html-validate

Install

$ npm install --save-dev grunt-html-validate

Usage

require("load-grunt-tasks")(grunt);

grunt.initConfig({
  htmlvalidate: {
    default: {
      src: ["file.html"],
    },
  },
});

Options

format

Type: string|string[]|[string, object][] Default: stylish

Set the output formatter.

{
  options: {
    format: ["stylish", ["json", { dest: "report.json" }]];
  }
}

failOnError

Type: boolean Default: true

Fail the build if any errors are encountered.