gulp-community / gulp-concat

Streaming concat middleware for gulp
MIT License
792 stars 126 forks source link

Takes base directory from most recently modified file, not first file #137

Open s100 opened 7 years ago

s100 commented 7 years ago

The README says that the output file "will take the base directory from the first file that passes through it".

In practice, the output file takes its base directory from the most recently modified file that passes through it, not the first one.

Splaktar commented 5 years ago

It looks like that is only the case if the file passed in is a string and not a Vinyl File Object. In the second case, it appears that both latestMod and latestFile (except for a check for no matching files) are ignored.

YunYouJun commented 5 years ago

I have the same problem. How to solve it?