Closed twolfson closed 11 years ago
For the implementation, I would prefer to open a higher level router
option which takes:
'router': function (filepath) {
// Tweak file path -- this can be via cwd or some custom routing
return tweakedFilepath;
};
Then, cwd
hooks on top of router
-- allowing for even more customizablility if anyone ever wants it.
Patched in 0.5
@markusfalk If you use the following, you will no longer have the build/
prefix in your zip files.
{
zip: {
src: ['build/**/*'],
dest: 'html.zip',
cwd: 'build/'
}
}
Allow for specification of a working directory during zipping. This will allow for simplification of file paths by removing unnecesary folders.