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
This commit is contained in:
Julien Melissas
2015-02-01 11:41:31 -05:00
parent 3f7c8459f7
commit 28a8642578

View File

@@ -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']);