Open cjduncana opened 8 years ago
I did that by creating a task like the following:
gulp.task('pa11y', pa11y({ url: config.devUrl, failOnError: true, // fail tje build on error showFailedOnly: true, // show errors only and override reporter reporter: 'console' }));
And then, on build, I just run the related task:
gulp.task('build', function(callback) { runSequence('pa11y', callback); });
Hope it helps. ;)
hi can this plugin work on saved html files ? looks like only the url is used
Is there a way to use pa11y in the Gulp task stream? Something like:
The documentation is not clear on this front. It seems to me that this would be the most common use case since it would function similarly to other Gulp plugins like linters. As of right now, if I write this code in my gulpfile.js, I would get an error. I kinda anticipated this since this kind of code is not mention in the documentation, but from reading the documentation I do not have any idea of how exactly do I use this plugin.
Any help? This seems like a great plugin.