From 79d251cfad6a09fad04fa525f6a4559eeb318eaf Mon Sep 17 00:00:00 2001 From: Ward Bell Date: Mon, 15 Feb 2016 18:40:25 -0800 Subject: [PATCH] devtools: fix jade-shredding watch exclusions --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 4d62214d32..9b74ccb743 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -657,7 +657,7 @@ function devGuideSharedJadeWatch(shredOptions, postShredAction) { // removed this version because gulp.watch has the same glob issue that dgeni has. // var excludePattern = '!' + path.join(shredOptions.jadeDir, '**/node_modules/**/*.*'); // gulp.watch([includePattern, excludePattern], {readDelay: 500}, function (event, done) { - var files = globby.sync( [includePattern], { ignore: [ '**/node_modules/**', '**/_.*.jade']}); + var files = globby.sync( [includePattern], { ignore: [ '**/node_modules/**', '**/guide/_fragments/**']}); gulp.watch([files], {readDelay: 500}, function (event, done) { gutil.log('Dev Guide jade file changed') gutil.log('Event type: ' + event.type); // added, changed, or deleted