From 7395c125123da2adce5d55d3b26a5f8812fdac2c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Oct 2020 18:49:27 +0300 Subject: run default gulp tasks on startup --- gulpfile.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'gulpfile.js') 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')); -- cgit v1.2.3