grunt-html-validate

3.0.0 • Public • Published

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.

Package Sidebar

Install

npm i grunt-html-validate

Weekly Downloads

537

Version

3.0.0

License

MIT

Unpacked Size

5.11 kB

Total Files

4

Last publish

Collaborators

  • ext