https://github.com/tera-li/dir-to-zip
dir-to-zip
https://github.com/tera-li/dir-to-zip
compress zip
Last synced: 5 months ago
JSON representation
dir-to-zip
- Host: GitHub
- URL: https://github.com/tera-li/dir-to-zip
- Owner: tera-li
- License: mit
- Created: 2021-04-28T14:35:18.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-07T06:49:17.000Z (over 2 years ago)
- Last Synced: 2025-08-09T04:38:54.902Z (11 months ago)
- Topics: compress, zip
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/dir-to-zip
- Size: 167 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## dir-To-Zip
This is a webpack build tool, build directory to zip
### How to use?
#### Download
```
npm install --save-dev dir-to-zip
```
#### Use
```js
// webpack.config.js
const dirToZip = require("dir-to-zip");
module.exports = {
plugins: [
new dirToZip({
// compress directory
dir: "./dist",
// output directory and zip name
zipName: "dist.zip",
})
],
}
```