compressing
compressing copied to clipboard
How can i use zip.compressDir without origin directory ?
How can i use zip.compressDir without origin directory ?
Having the same issue.
So just for clarification, we have a dist folder with some files:
- index.html
- style.css
- main.js
- package.json
We want to compress the dist folder into dist.tgz and keep the folder structure without nesting the div folder inside dist.tgz/dist/...
Is there a way to do this ?
Maybe you can set the opt { ignoreBase: true } to solve the problem.
eg: compressing.zip.compressDir(srcUrl,dsetUrl,{ ignoreBase: true })