adding same browser sync support than in parent theme

This commit is contained in:
koenemann 2016-08-02 09:24:07 +02:00
parent 2e641fcf80
commit 606132a45c
1 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ var ignore = require('gulp-ignore');
var rimraf = require('gulp-rimraf');
var sourcemaps = require('gulp-sourcemaps');
var browserSync = require('browser-sync').create();
var reload = browserSync.reload;
// Run:
// gulp sass
@ -62,7 +63,7 @@ gulp.task('cssnano', ['cleancss'], function(){
.pipe(cssnano({discardComments: {removeAll: true}}))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./css/'))
.pipe(browserSync.stream());
.pipe(reload({stream: true}));
});
gulp.task('cleancss', function() {