Gulp: Don't livereload by default
When running gulp watch, we were livereloading by default, which meant we can't have multiple 'gulp watch'.
This commit is contained in:
@@ -95,7 +95,10 @@ gulp.task('scripts_concat_markdown', function() {
|
|||||||
|
|
||||||
// While developing, run 'gulp watch'
|
// While developing, run 'gulp watch'
|
||||||
gulp.task('watch',function() {
|
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/styles/**/*.sass',['styles']);
|
||||||
gulp.watch('src/templates/**/*.jade',['templates']);
|
gulp.watch('src/templates/**/*.jade',['templates']);
|
||||||
|
Reference in New Issue
Block a user