dir-to-zip
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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

// 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",
    })
  ],
}

Package Sidebar

Install

npm i dir-to-zip

Weekly Downloads

2

Version

1.0.7

License

MIT

Unpacked Size

4.6 kB

Total Files

4

Last publish

Collaborators

  • surprise_lin