zip-snowpack-plugin
v1.0.0
Published
Snowpack plugin to zip files.
Downloads
1
Readme
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$/]
}]
]
}