Skip to content

Commit

Permalink
Merge pull request #1430 from roots/qwp6t-gulp
Browse files Browse the repository at this point in the history
Limit file patterns in gulp watch
  • Loading branch information
austinpray committed Apr 21, 2015
2 parents adb8309 + 8699a29 commit 5b9786b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gulpfile.js
Expand Up @@ -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'],
Expand All @@ -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
Expand Down

0 comments on commit 5b9786b

Please sign in to comment.