문제

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'])
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top