Gulp.js task, return on src?

后端 未结 3 1336
别跟我提以往
别跟我提以往 2020-11-28 02:10

I\'m new to gulp and have been looking through example set-ups. Some people have the following structure:

gulp.task(\"XXXX\", function() {
    gulp.src(\"...         


        
3条回答
  •  醉话见心
    2020-11-28 02:37

    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.

提交回复
热议问题