Answer the question
In order to leave comments, you need to log in
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
gulp.watch
uses 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 questionAsk a Question
731 491 924 answers to any question