From 28a8642578559a3d1e567278e66dc64f4160059d Mon Sep 17 00:00:00 2001 From: Julien Melissas Date: Sun, 1 Feb 2015 11:41:31 -0500 Subject: [PATCH] Added wp-admin pages to browserSync ignore path. Code from https://github.com/roots/roots/issues/1298#issuecomment-72369925 Closes https://github.com/roots/roots/issues/1298 --- gulpfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index a1bf379..6dd374c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -205,7 +205,10 @@ gulp.task('clean', require('del').bind(null, [path.dist])); // See: http://www.browsersync.io gulp.task('watch', function() { browserSync({ - proxy: config.devUrl + proxy: config.devUrl, + snippetOptions: { + ignorePaths: 'wp-admin/**' + } }); gulp.watch([path.source + 'styles/**/*'], ['styles']); gulp.watch([path.source + 'scripts/**/*'], ['jshint', 'scripts']);