This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
gulp-global-exclude with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
#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