From c3f559b8186463adfd8fc06fc9c8d4ae7f199756 Mon Sep 17 00:00:00 2001 From: Austin Pray Date: Thu, 29 Jan 2015 14:13:58 -0600 Subject: [PATCH] Fixes browsersync hard refresh Whitelists js and css and does not send maps to browsersync. ref: https://github.com/roots/roots/issues/1287#issuecomment-72085636 ref: http://discourse.roots.io/t/gulpfile-with-browsersync/2834/2 --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index e58e38d..7f8f642 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -122,7 +122,9 @@ var jsTasks = function(filename) { var writeToManifest = function(directory) { return lazypipe() .pipe(gulp.dest, path.dist + directory) - .pipe(browserSync.reload, {stream:true}) + .pipe(function() { + return $.if('**/*.{js,css}', browserSync.reload({stream:true})); + }) .pipe($.rev.manifest, revManifest, { base: path.dist, merge: true