skyrpex / gulp-less-watcher

(Not Maintained) Watches Less files (and imports) using an endless streaming interface (and generates sourcemaps)
MIT License
2 stars 2 forks source link

Watch Glob #6

Closed sprynm closed 6 years ago

sprynm commented 8 years ago

I fear the answer but is there a way to watch multiple files?

gulp.task('csswatch', function() {
     return gulp.src( './less/builders/**/*.less' )   
        .pipe( $.lessWatcher( LESSConfig ) )
        .pipe( $.less( LESSConfig ) )       
        .pipe( gulp.dest( paths.CSSOutput ) )
});
skyrpex commented 8 years ago

I think there's a bug in my code that just watches the first file that comes from gulp.src().

I'll try to debug it ASAP.