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

  node.js, question


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! !