F
F
fantazerno2016-01-11 15:17:34
gulp.js
fantazerno, 2016-01-11 15:17:34

How to ignore a directory in gulp?

Tell me how to set it up so that it monitors all folders except for ... the necessary one,
let's say in the app folder there is a certain subset of directories that you need to monitor and from them the "bad" folder needs to be skipped

gulp.task('task',function(){
        gulp.watch('app/**/**.js',['run'])
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bohdan Shtepan, 2016-01-11
@fantazerno

gulp.watchuses vinyl-fs , which uses gaze , which finally uses minimatch . Therefore, you can ignore files/folders like this !./js/*.min.*.
fs.src(["./js/**/*.js", "!./js/vendor/*.js"])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question