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