Answer the question
In order to leave comments, you need to log in
How to run multiple tasks in a row in Gulp?
Good day to all.
I have Gulpfile.js.
I paste the code.
const gulp = require('gulp');
concat = require('gulp-concat');
minify = require('gulp-minify');
gulp.task('concat', function() {
return gulp.src('./js/*.js')
.pipe(concat('all.js'))
.pipe(gulp.dest('./dist/'));
});
gulp.task('minify', async function () {
gulp.src('./dist/all.js')
.pipe(minify())
.pipe(gulp.dest('./dist/all-min.js'));
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question