-1

I have this gulp:

return gulp.src('content/less/*/*.less')

Is there a way that I could exclude the folder

content/less/info from the .src search?
Samantha J T Star
  • 30,952
  • 84
  • 245
  • 427
  • This is a duplicate question. See http://stackoverflow.com/questions/23384239/excluding-files-directories-from-gulp-task – Temp O'rary May 13 '16 at 07:20

1 Answers1

2

A glob that begins with ! excludes matching files from the glob results up to that point. For example:
The following expression matches a.js and bad.js:

gulp.src(['client/*.js', '!client/b*.js', 'client/bad.js'])

Ref: https://github.com/gulpjs/gulp/blob/master/docs/API.md#globs

Temp O'rary
  • 5,366
  • 13
  • 49
  • 109