Answer the question
In order to leave comments, you need to log in
How to run tasks synchronously in Gulp?
There are solutions on the Internet when one task does not start without waiting for another.
For example
gulp.task('default', ['sync', 'thirdTask'], function () {
// делаем всякое
});
var gulpSequence = require('gulp-sequence');
gulp.task('default-one', gulpSequence('task-one', ['some-tesk', 'task-fff'], 'task-css'));
gulp.task('default-two', gulpSequence('task-js', 'task-css', 'task-dev'));
Answer the question
In order to leave comments, you need to log in
The first option is the most adequate, I think
you do a task with dependencies in an array and then you insert this task into another array of dependencies and configure the order as needed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question