Q
Q
quex2015-10-13 20:00:38
Node.js
quex, 2015-10-13 20:00:38

What is the code in the gulp-concat plugin?

Learning to write plugins for gulp. At first I decided to study the code of the most popular ones.
Two points in the gulp-concat plugin code are not clear :
1. Why do we need to manipulate the latestFile and latestMod variables? After all, endStream is so executed only 1 time at the output. Why choose the most recent file and modify it?
2. The question follows from the first. Why is the latest incoming file cloned here instead ofvar joinedFile = new File(...)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question