-
We can invoke gulp use However, can I invoke it programmatically? like:
|
Beta Was this translation helpful? Give feedback.
Answered by
phated
Mar 4, 2022
Replies: 1 comment
-
Tasks are just functions. If you do this: const task = parallel(foo, bar);
console.log(task); You'll see it is a function. You can just call it! const task = parallel(foo, bar);
task() These are referred to as "private tasks" in https://gulpjs.com/docs/en/getting-started/creating-tasks
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
phated
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tasks are just functions. If you do this:
You'll see it is a function. You can just call it!
These are referred to as "private tasks" in https://gulpjs.com/docs/en/getting-started/creating-tasks