Answer the question
In order to leave comments, you need to log in
gulp. Why is a callback needed in a task?
Sometimes in gulpfile I meet such a construction:
gulp.task("build", function(cb) {
run(
"clean",
"copy",
"style",
"images",
"js",
cb
);
});
Answer the question
In order to leave comments, you need to log in
Gulp allows you to chain tasks into dependency chains (before task A, you need to execute B), the callback tells gulp that the task is completed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question