Makes browsersync work like it's supposed to.

This commit is contained in:
VesterDe 2016-12-29 15:00:16 +01:00
parent 8d5ac31903
commit 631992d83d
1 changed files with 0 additions and 3 deletions

View File

@ -39,7 +39,6 @@ var clone = require('gulp-clone');
var merge = require('gulp-merge'); var merge = require('gulp-merge');
var sourcemaps = require('gulp-sourcemaps'); var sourcemaps = require('gulp-sourcemaps');
var browserSync = require('browser-sync').create(); var browserSync = require('browser-sync').create();
var reload = browserSync.reload;
// Run: // Run:
@ -74,7 +73,6 @@ gulp.task('scss-for-dev', function() {
.pipe(sass()) .pipe(sass())
.pipe(sourcemaps.write(undefined, { sourceRoot: null })) .pipe(sourcemaps.write(undefined, { sourceRoot: null }))
.pipe(gulp.dest('./css')) .pipe(gulp.dest('./css'))
.pipe(reload({stream: true}));
}); });
gulp.task('watch-scss', ['browser-sync'], function () { gulp.task('watch-scss', ['browser-sync'], function () {
@ -114,7 +112,6 @@ gulp.task('cssnano', ['cleancss'], function(){
.pipe(cssnano({discardComments: {removeAll: true}})) .pipe(cssnano({discardComments: {removeAll: true}}))
.pipe(sourcemaps.write('./')) .pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./css/')) .pipe(gulp.dest('./css/'))
.pipe(reload({stream: true}));
}); });
gulp.task('cleancss', function() { gulp.task('cleancss', function() {