[英]In Gulp how do you negate multiple items e.g. ignore a file and a directory?
In Gulp how do you negate multiple items eg ignore a file and a directory? 在Gulp中你如何否定多个项目,例如忽略文件和目录?
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'])
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. 您可以根据需要在glob列表中包含任意数量的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.