zip-snowpack-plugin

1.0.0 • Public • Published

zip-snowpack-plugin

Snowpack plugin to zip files.

Installation

For NPM:

npm install --save-dev zip-snowpack-plugin

For Yarn:

yarn add -D zip-snowpack-plugin

Usage

snowpack.config.js

module.exports = {
    // ...
    plugins: [
        ['zip-snowpack-plugin', {
            // set zip out path
            // OPTIONAL: defaults to the Snowpack build path
            path: 'dist',

            // set zip file name
            // OPTIONAL: defaults to ''
            filename: '',

            // set zip file extension
            // OPTIONAL: defaults to 'zip'
            extension: 'zip',

            // must be a RegExp, zip the file only when file relative path is satisfied with any of RegExp in the list
            // If undefined, plugin will ignore it
            // OPTIONAL: defaults to undefined
            include: [],
            
            // must be a RegExp, don't zip the file only when file relative path is satisfied with any of RegExp in the list
            // If undefined, plugin will ignore it
            // OPTIONAL: defaults to undefined
            exclude: [/\.png$/]
        }]
    ]
}

Readme

Keywords

Package Sidebar

Install

npm i zip-snowpack-plugin

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.23 kB

Total Files

5

Last publish

Collaborators

  • alexcui