gulp.watch
internally uses vinyl-fs
(see source), which uses gaze
, which uses itself minimatch
, so you should be able to ignore some files using !./js/*.min.*
.
In fact, this is even described in vinyl-fs’s README:
fs.src(["./js/**/*.js", "!./js/vendor/*.js"])
[…]