我有这口气:
return gulp.src('content/less/*/*.less')
有没有办法可以排除文件夹
content/less/info from the .src search?
答案 0 :(得分:2)
以!
开头的glob会从glob结果中排除匹配文件。例如:
以下表达式匹配a.js和bad.js:
gulp.src(['client/*.js', '!client/b*.js', 'client/bad.js'])
参考:https://github.com/gulpjs/gulp/blob/master/docs/API.md#globs