Closed floatdrop closed 10 years ago
@floatdrop I think it would make more sense here to just get rid of the file clone, and let people specify the cwd/base/path of a brand new file as an option (with default to the first file like it is currently). I would take a PR that optionally accepts an object as an argument and then uses that in the outbound file instead of cloning
Oops ^
concat('app.js') // takes cwd and base from first file
// full overrides
concat({
cwd: process.cwd(),
path: '/home/whatever/app.js'
})
Looks good. I will try to do this in the morning.
Awesome - thanks for reporting :+1:
I've stumbled upon this in issue, that related with
gulp-jade
.Jade calculates relative path's from
extend
andinclude
based onfilename
which is taken frompath
of the incoming vinyl file. Problem is - I have bunch of files with mixins that goes before actual file withextend
in it. Soconcat
takes path from first file (that contain mixins) and jade calculatingextend
from mixin file and not from last file, that containsextend
instruction.May be it is worth to create option
cloneLast
- that will tellgulp-concat
to clone last file?