Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Gulp how do you negate multiple items e.g. ignore a file and a directory?

In Gulp how do you negate multiple items e.g. ignore a file and a directory?

I want to combine the following:

gulp.src(['./**/*.{css,js,gif,png,php,eot,svg,ttf,woff}', '!./src/**/*'])

gulp.src(['./**/*.{css,js,gif,png,php,eot,svg,ttf,woff}', '!./gulpfile.js'])
like image 686
u01jmg3 Avatar asked May 08 '14 21:05

u01jmg3


1 Answers

Just add them on to your list:

gulp.src(['./**/*.{css,js,gif,png,php,eot,svg,ttf,woff}',
          '!./src/**/*',
          '!./gulpfile.js'])

You can have as many items in your glob list as you want.

like image 187
OverZealous Avatar answered Oct 16 '22 01:10

OverZealous