Auto re-compile all CSS when starting watch

This commit is contained in:
Djamil Legato
2016-03-08 14:09:13 -08:00
parent 192af60094
commit fbd55d3157

View File

@@ -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']);