Closed kitemao closed 10 years ago
src
always contains itself in the zip. To work around that, you have to either use cwd
or router
.
For your case, cwd
is the easiest to integrate:
{
zip: {
cwd: 'project/',
src: '**/*',
dest: 'project.zip'
}
}
thank you
if i have a 'project' folder, there are many files and dirs in this folder, now i only want to zip those files and dirs, and not contain this 'project' folder, how should i to set 'src' field