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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -