How can I tell Gulp to skip or ignore some files in gulp.src([...])? For instance, I don\'t want to compress and concat this file in my css/ fo
gulp.src([...])
Add a !:
!
gulp.task('styles', function() { gulp.src([ '!css/ignnore.css', // <== ! 'css/*.css' ]) .pipe(concat('styles.css')) .pipe(autoprefix('last 2 versions')) .pipe(minifyCss()) .pipe(gulp.dest('local/view/style/base/css/dist/')); });
Try this:
gulp.src(['css/**/!(ignore.css)*.css'])