Makes browsersync work like it's supposed to.
This commit is contained in:
parent
8d5ac31903
commit
631992d83d
|
@ -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() {
|
||||
|
|
Reference in New Issue