From 631992d83ddf8371cb51a7c08699ec2d03307d8c Mon Sep 17 00:00:00 2001 From: VesterDe Date: Thu, 29 Dec 2016 15:00:16 +0100 Subject: [PATCH 1/2] Makes browsersync work like it's supposed to. --- gulpfile.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ed90b9e..65e7e78 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -39,7 +39,6 @@ var clone = require('gulp-clone'); var merge = require('gulp-merge'); var sourcemaps = require('gulp-sourcemaps'); var browserSync = require('browser-sync').create(); -var reload = browserSync.reload; // Run: @@ -74,7 +73,6 @@ gulp.task('scss-for-dev', function() { .pipe(sass()) .pipe(sourcemaps.write(undefined, { sourceRoot: null })) .pipe(gulp.dest('./css')) - .pipe(reload({stream: true})); }); gulp.task('watch-scss', ['browser-sync'], function () { @@ -114,7 +112,6 @@ gulp.task('cssnano', ['cleancss'], function(){ .pipe(cssnano({discardComments: {removeAll: true}})) .pipe(sourcemaps.write('./')) .pipe(gulp.dest('./css/')) - .pipe(reload({stream: true})); }); gulp.task('cleancss', function() { From c7a78882736571e9db39a6572aa0ee1cab2f5109 Mon Sep 17 00:00:00 2001 From: VesterDe Date: Thu, 29 Dec 2016 15:01:26 +0100 Subject: [PATCH 2/2] Fixes typos. --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 65e7e78..723feb7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -65,7 +65,7 @@ gulp.task('scss-for-prod', function() { // Run: // gulp sourcemaps + sass + reload(browserSync) -// Prepare the child-theme.css for the developpment environment +// Prepare the child-theme.css for the development environment gulp.task('scss-for-dev', function() { gulp.src('./sass/*.scss') .pipe(plumber()) @@ -102,7 +102,7 @@ gulp.task('watch', function () { // Run: -// gulp nanocss +// gulp cssnano // Minifies CSS files gulp.task('cssnano', ['cleancss'], function(){ return gulp.src('./css/theme.css')