mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-07-13 11:03:17 +02:00
Auto re-compile all CSS when starting watch
This commit is contained in:
7
themes/grav/gulpfile.js
vendored
7
themes/grav/gulpfile.js
vendored
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user