Answer the question
In order to leave comments, you need to log in
Why doesn't gulp see the newly created folder?
I'm using Gulp 4 and I have a task that deploys the code locally:
gulp.task('deploy', gulp.series('clean', 'handlers:all', 'deployment'));
gulp.task('deployment', done => {
gulp.src('./build/')
.pipe(gulp.dest('../other-project/'));
});
gulp.task('deployment', done => {
setTimeout(() => {
gulp.src('./build/')
.pipe(gulp.dest('../other-project/'));
}, 2000);
});
Answer the question
In order to leave comments, you need to log in
Before starting a task that works with a newly created folder, wait until the task that creates this folder is finished. For example, as I recommended here - How to make sequential execution of tasks in GULP?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question