From fbd55d3157f102d30bd141ccb0d0632f933360cf Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Tue, 8 Mar 2016 14:09:13 -0800 Subject: [PATCH] Auto re-compile all CSS when starting watch --- themes/grav/gulpfile.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/themes/grav/gulpfile.js b/themes/grav/gulpfile.js index 5c0c1ad4..3aea29d2 100644 --- a/themes/grav/gulpfile.js +++ b/themes/grav/gulpfile.js @@ -83,11 +83,6 @@ var compileCSS = function(event) { .pipe(gulp.dest('./css-compiled')); }; -gulp.task('all', function() { - compileJS(true); - compileCSS(); -}); - gulp.task('js', function() { compileJS(false); }); @@ -106,7 +101,9 @@ gulp.task('watch-js', function() { }); gulp.task('watch-css', function() { + compileCSS(); gulp.watch('./scss/**/*.scss', compileCSS); }); +gulp.task('all', ['css', 'js']); gulp.task('default', ['all']);