The writing standard of Gulp method makes me headache. Please ask.

  node.js, question

clipboard.png

First of all, your problem is that you don’t understand “chain call”! ! !

Then why can the first place be used?pipeWhat about continuous calls? Let’s look at it first.Document

图片描述

See, saygulp.srcThe return value of is astream, andstreamYes, it can be usedpipe, called continuously.

As for what ispipeLet’s look at another paragraphDocument

图片描述

Finally, let’s see whywatchCan’t call continuously, lookDocument:

图片描述

watchThe return value of is aEventEmitterObject, andEventEmitterNopipeHow to do it! !