grunt-html-validation
grunt-html-validation copied to clipboard
How to specify which files are validated?
I'm unclear about how to specify which files to validate, and how validation-status.json works.
I want to validate all index.html files in directories under my/path. For example: my/path/dir1/index.html, my/path/dir2/index.html and my/path/dir3/index.html.
My Gruntfile.js has this:
files: {
src: ['my/path/**/index.html']
},
options: {
reset: true
}
However, only two files in the directories under my/path get validated when I run grunt validation.
validation-status.json has only this (i.e. only a reference to the first file/subdirectory):
{"my/path/dir1/index.html":true}
What am I missing?