You return
to indicate that the task is async. gulp.src()
returns a stream, so it’s async.
Without it the task system wouldn’t know when it finished. Read the docs.
More Related Contents:
- How to run Gulp tasks sequentially one after the other
- Is it possible to pass a flag to Gulp to have it run tasks in different ways?
- Gulps gulp.watch not triggered for new or deleted files?
- After installation of Gulp: “no command ‘gulp’ found”
- Modify file in place (same dest) using Gulp.js and a globbing pattern
- Visual Studio Task Runner “SyntaxError: Use of const in strict mode.”
- Can I use a Gulp task with multiple sources and multiple destinations?
- Execute a command line binary with Node.js
- Nodejs Event Loop
- garbage collection with node.js
- Javascript ES6 TypeError: Class constructor Client cannot be invoked without ‘new’
- SyntaxError: Unexpected token function – Async Await Nodejs
- Why do I need to await an async function when it is not supposedly returning a Promise?
- How to use optional chaining in Node.js 12
- Discord bot on Heroku throws an error: agent ??= new https.Agent
- How to run Puppeteer code in any web browser?
- Proper way to skip a then function in Q Promises
- Node async loop – how to make this code run in sequential order?
- Why is an _id with ObjectID added to when using MongoDB’s $push to add new object to an array?
- puppeteer: wait N seconds before continuing to the next line
- Mongoose.js: Find user by username LIKE value
- Secure random token in Node.js
- Matched leaf route at location “/” does not have an element
- How do I stream response in express?
- Creating a private chat between a key using a node.js and socket.io
- Can’t install any NPM package, error 4058
- Conflict: Multiple assets emit to the same filename
- gulp babel, exports is not defined
- puppeteer wait for page/DOM updates – respond to new items that are added after initial loading
- NodeJS – setTimeout(fn,0) vs setImmediate(fn)