Closed bkuberek closed 10 years ago
Turns out, I was not doing a good job in keeping my tasks in sync. So I was having race conditions.
For example:
gulp.task('build', ['clean', 'compile'], function () {...});
I was under the impression that the dependencies would run in order, which is not the case. Both clean
and compile
would run in parallel.
The solution, although not ideal, was to add clean
as a dependency to all tasks.
Can you not
gulp.task('build', function() {
runSequence(['clean'], ['compile']);
});
I have to run
gulp clean
multiple times to get my build directory cleaned up. I get the following error:Here is my task: