From c4e8060f59469c9e7e423f6df6af1e2eec60ae08 Mon Sep 17 00:00:00 2001 From: John Furrow Date: Sat, 21 Nov 2015 08:31:15 -0800 Subject: [PATCH] Fix browserSync CSS injection --- gulpfile.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 6de98eb6..f89417da 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -115,7 +115,7 @@ gulp.task('sass', function () { .pipe(autoprefixer()) .pipe(gulpif(development, sourcemaps.write('.'))) .pipe(gulp.dest(dirs.dist + '/' + dirs.stylesDist)) - .pipe(gulpif(development, browserSync.stream())); + .pipe(browserSync.stream({match: "**/*.css"})); }); gulp.task('minify-css', ['sass'], function () { @@ -168,7 +168,6 @@ gulp.task('webpack', function (callback) { // This runs after webpack's internal watch rebuild. // eslintFn(); if (development) { - console.log('reloading from webpack'); browserSync.reload(); } }