Skip to content
Global exclude patterns for gulp.src and
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

#Gulp Global Exclude

Add exclude patterns to gulp that will be used in every .src and .watch call.


var gulp = require('gulp');
var globalExclude = require('gulp-global-exclude');

globalExclude(gulp, ['!node_modules/**', '!build/**']);

Now '!node_modules/' and '!build/' will automatically be appended to the patterns array in any .src or .watch call.

You can’t perform that action at this time.