Closed luisrudge closed 9 years ago
Tasks run concurrently, not serially. You need to run clean
before zip
, not at once.
gulp.task('zip', ['build'], function() {
});
zip
will only run after build
is complete. It's not running both tasks in parallel
Is this problem resolved?
Hi! I'm having a problem when I'm using gulp-clean. It's pretty hard to reproduce, but, basically, everytime I use gulp-clean or rimraf, the generated zip misses some files.
This works:
This doesn't:
Notice the clean in the second 'build' task. Whenever I run the second example, the zip task misses two files (app.js and index.html). The first example runs just fine, but I can't guarantee that all files are the new files. Any thoughts?