Gulp.js task, return on src?

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.

Leave a Comment