Given the following gulpfile.js
(simplified), why does gulp-watch not exclude the mongoData
-folder?
'use strict';
var gulp = require('gulp'),
paths = {
js: ['*.js', 'test/**/*.js', '!test/coverage/**', '!bower_components/**', '!packages/**/node_modules/**', '!packages/contrib/**/*.js', '!packages/contrib/**/node_modules/**', '!packages/core/**/*.js', '!packages/core/public/assets/lib/**/*.js']
};
gulp.task('watch', function () {
gulp.watch([paths.js, '!mongoData/**/*.*']).on('change', plugins.livereload.changed);
});
I also tried adding !mongoData/**/*.*
in paths.js
without success.