From 835851c1d75f9a1cfc79ca4656a96d1ce9df48d3 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 30 Aug 2017 15:06:09 +0200 Subject: [PATCH] Gulp: Fix livereload --- gulpfile.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index eaf6ebe..91f42e5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -18,8 +18,7 @@ var enabled = { maps: argv.production, failCheck: !argv.production, prettyPug: !argv.production, - cachify: !argv.production, - liveReload: !argv.production + cachify: !argv.production }; @@ -34,7 +33,7 @@ gulp.task('styles', function() { .pipe(autoprefixer("last 3 versions")) .pipe(gulpif(enabled.maps, sourcemaps.write("."))) .pipe(gulp.dest('cloud/static/assets/css')) - .pipe(gulpif(enabled.liveReload, livereload())); + .pipe(gulpif(argv.livereload, livereload())); }); @@ -47,7 +46,7 @@ gulp.task('templates', function() { pretty: enabled.prettyPug })) .pipe(gulp.dest('cloud/templates/')) - .pipe(gulpif(enabled.liveReload, livereload())); + .pipe(gulpif(argv.livereload, livereload())); }); @@ -62,7 +61,7 @@ gulp.task('scripts', function() { .pipe(gulpif(enabled.maps, sourcemaps.write("."))) .pipe(chmod(644)) .pipe(gulp.dest('cloud/static/assets/js/')) - .pipe(gulpif(enabled.liveReload, livereload())); + .pipe(gulpif(argv.livereload, livereload())); }); @@ -77,7 +76,7 @@ gulp.task('scripts_concat_tutti', function() { .pipe(gulpif(enabled.maps, sourcemaps.write("."))) .pipe(chmod(644)) .pipe(gulp.dest('cloud/static/assets/js/')) - .pipe(gulpif(enabled.liveReload, livereload())); + .pipe(gulpif(argv.livereload, livereload())); });