praveenvijayan / grunt-html-validation

W3C html validaton grunt plugin. Validate all files in a directory automatically.
MIT License
75 stars 39 forks source link

Got message "undefined is not a valid uri or options object" from the second time validation with grunt-este-watch #73

Closed 2YY closed 9 years ago

2YY commented 9 years ago

I'm using grunt-html-validation with grunt-este-watch.

esteWatch: {
  options: {
    dirs: ['source/**/']
  },
  slim: function(filepath) {
    if(filepath.match("source\/")) {
      grunt.config(['validation', 'options', 'remoteFiles'], [RegExp.rightContext.replace(/.slim/, '')]);
      return ['validation']
    }
  }
}

Then, first validation work fine.

But, from the second time is not work fine. I've got below message every after validation.

Warning: undefined is not a valid uri or options object.
2YY commented 9 years ago

I found solution.

https://github.com/mryvlin/grunt-w3c-validation