April 2018
Beginner
536 pages
13h 21m
English
All we need to do is to use a promise as the return of the task definition function as follows:
gulp.task("sync", function () {
return new Promise((resolve) => {
setTimeout(function () {
console.log("Hello Gulp!");
resolve();
}, 1000);
});
});