-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gulp running dependencies in parallel #670
Comments
Nope, you are right, all the deps are run in parallel which is desirable in most cases to maximise performance. Still, there are cases where the very nature of tasks calls for serial execution. There are some work-arounds to achieve this in the current version of gulp (https://www.npmjs.org/package/run-sequence) but it is something that is going to be handled very elegantly in Gulp 4, see #355 |
This is because gulp run in maximum concurrency, so you cannot be sure that minify run once and only after clean and build. This should be fixed in the runSeries improvement of gulp 4, but for the time being, you should take a look at run-sequence (https://www.npmjs.org/package/run-sequence) |
Ah, I see. Thanks for the lightning fast replies! |
I'm trying to write a simple build system with Gulp. I'm using Gulp 3.8.7. Here's my
gulpfile.js
:Every other time I run
gulp
, I get the following error:It looks like Gulp is running
clean
,compile
andminify
in parallel, even though the tasks are dependent. Am I missing something?The text was updated successfully, but these errors were encountered: