Fix browserSync CSS injection

This commit is contained in:
John Furrow
2015-11-21 08:31:15 -08:00
parent 66ca77926c
commit c4e8060f59
+1 -2
View File
@@ -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();
}
}