From 951406689304e20c45382f7f01e806e9c8027b56 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Thu, 22 Sep 2016 18:07:05 +0200 Subject: [PATCH] Gulp: Don't livereload by default When running gulp watch, we were livereloading by default, which meant we can't have multiple 'gulp watch'. --- gulpfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index fdb0e3e7..ce20495f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -95,7 +95,10 @@ gulp.task('scripts_concat_markdown', function() { // While developing, run 'gulp watch' gulp.task('watch',function() { - livereload.listen(); + // Only listen for live reloads if ran with --livereload + if (argv.livereload){ + livereload.listen(); + } gulp.watch('src/styles/**/*.sass',['styles']); gulp.watch('src/templates/**/*.jade',['templates']);