diff options
author | Andrew Dolgov <[email protected]> | 2020-10-08 18:49:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-10-08 18:49:27 +0300 |
commit | 7395c125123da2adce5d55d3b26a5f8812fdac2c (patch) | |
tree | 44d29f7a7265c9682ce93648bc136f015f07a896 /gulpfile.js | |
parent | d73ed30d76a5abd7dbfc15202f432f83a79f99ac (diff) |
run default gulp tasks on startup
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 12 |
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')); |