summaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-10-08 18:49:27 +0300
committerAndrew Dolgov <[email protected]>2020-10-08 18:49:27 +0300
commit7395c125123da2adce5d55d3b26a5f8812fdac2c (patch)
tree44d29f7a7265c9682ce93648bc136f015f07a896 /gulpfile.js
parentd73ed30d76a5abd7dbfc15202f432f83a79f99ac (diff)
run default gulp tasks on startup
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 84016b0..0db8a13 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -60,11 +60,11 @@ gulp.task('minifyCSS', function(cb) {
gulp
.src(['css/reader_iframe.less'])
- .pipe(less())
- .pipe(minifyCSS())
- .pipe(rename("reader_iframe.min.css"))
- .on('error', swallowError)
- .pipe(gulp.dest('dist/'));
+ .pipe(less())
+ .pipe(minifyCSS())
+ .pipe(rename("reader_iframe.min.css"))
+ .on('error', swallowError)
+ .pipe(gulp.dest('dist/'));
cb();
});
@@ -72,6 +72,8 @@ gulp.task('minifyCSS', function(cb) {
gulp.task(
'default',
function(cb) {
+ gulp.series(['minifyCSS', 'minifyJS', 'minifyLibsJS'])();
+
gulp.watch(['lib/**/*.js', 'lib/*.js'], gulp.series('minifyLibsJS'));
gulp.watch(['js/*.js'], gulp.series('minifyJS'));
gulp.watch(['css/*.less'], gulp.series('minifyCSS'));