From 8699a299c9112f8e2ed20ecec0805eee65a389f2 Mon Sep 17 00:00:00 2001 From: QWp6t Date: Sun, 19 Apr 2015 16:34:39 -0700 Subject: [PATCH] Limit file patterns in gulp watch --- gulpfile.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 48aef3b68f..ad0aee44d9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -217,6 +217,7 @@ gulp.task('clean', require('del').bind(null, [path.dist])); // See: http://www.browsersync.io gulp.task('watch', function() { browserSync({ + files: [path.dist, '{lib,templates}/**/*.php', '*.php'], proxy: config.devUrl, snippetOptions: { whitelist: ['/wp-admin/admin-ajax.php'], @@ -228,9 +229,6 @@ gulp.task('watch', function() { gulp.watch([path.source + 'fonts/**/*'], ['fonts']); gulp.watch([path.source + 'images/**/*'], ['images']); gulp.watch(['bower.json', 'assets/manifest.json'], ['build']); - gulp.watch('**/*.php', function() { - browserSync.reload(); - }); }); // ### Build