Closed wangxian closed 9 years ago
You can change the base
option in gulp-src or use gulp-rename.
gulp-src base
parameter can not solve the problem, if opts.dest
dir is not exists, base
can not change file.relative
using gulp-rename
is ok
return gulp.src(pkginfo.dependenciesSRC, {cwd: "../", base: "../"})
.pipe(rename(function(path){ path.dirname = "webapp/" + path.dirname; }))
Thank you very much
I want to add
dest
option for setting destination directory in the zip fileUsage:
output zipfile structure
When no
options.dest
parameters , directories, zip files is like:options.dest
parameter allowsgulp.src
each item , output to the same directory , instead of the root zipfileIn one of our projects , we need to be labeled as a multiple apps zip package , if the compressed file is not the root directory , it will be very messy after decompression .
So I need to add a parameter
options.dest
thanks!