Closed 6aKa closed 10 years ago
May be gulp-filefilter
or gulp-filemask
No need to rename.
The gulp-filter plugins seems to be able to do both gulp-if and gulp-ignore -- which is pretty neat.
gulp-if does child tasks (passed in) if the condition is true, and passes all files (condition true & false) to piped tasks. gulp-ignore (and gulp-filter) doesn't pipe if condition is false. Ideally this would be called gulp-filter, and since it's much more powerful than gulp-filter, I have a PR in the works to make gulp-filter into module.exports = require('gulp-ignore')
.
gulp-filter
already exist and I like it.