gulp-filter exclude pattern not matching anything -
i trying use gulp (among other things) concatenate js files, scripts used on pages , want keep them separate can loaded when needed. goal use gulp-filter exclude files being run through concat filter seems exclude files , don't understand why.
var paths = { src: { styles: ['client/styles/**/*.scss'], scripts: ['client/scripts/**/*.js'], }, dest: { styles: 'assets/css', scripts: 'assets/js', } }; gulp.task('frontend_scripts', function(){ var globalfilter = gulpfilter(['*', '!client/scripts/pages']); gulp.src(paths.src.scripts) .pipe(globalfilter) .pipe(concat('global.js')) .pipe(globalfilter.restore()) .pipe(gulp.dest(paths.dest.scripts)) ; });
Comments
Post a Comment