-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
Hello !
First of all, thank you for the work done.
Sorry to create another issue (duplicate of #1), but I would like to use this plugin with streams.
I tried this :
var paths = require('../../paths');
var watch = require('../watch');
var plumberLazypipe = require('../../lib/lazypipes/plumber');
module.exports = function(gulp, plugins) {
return function() {
var src = paths.dest;
if (paths.dir) {
src = src + '/' + paths.dir;
}
src = src + '/**/*.{htm,html,jshtml,shtml}';
watch.create(gulp, plugins, src, 'lint-a11y', 'watch-lint-a11y');
return gulp.src(src, {
base: paths.dest
})
.pipe(plumberLazypipe(plugins)())
.pipe(plugins.axeWebdriver({
headless: true,
urls: [src]
}));
};
};
It works almost but I still have an error in the console about pipe (indeed because this plugin isn't intended to work with a stream).
Do you have any idea ?