0.0.4 • Published 12 months ago

rspack-zip-plugin v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

rspack-zip

it is a simple webpcak plugin for zip bundle folder to designation path

(用于将rspack输出文件夹打包为zip压缩包,并输送到指定目录下的插件)

NONTE: it is a direct port from the webpack-zip

Instructions

npm i rspack-zip-plugin -D

var RspackZipPlugin = require('rspack-zip-plugin');
...
plugins: [
  new RspackZipPlugin({
    destPath:'/dist.zip' // Compress the packaging results
  })
]
Options
  • destPath the designation path .default:Root directory
  • onErrorthe function deal error
  • onFinishthe function deal finish
  • noZip just copy
nametypedefaultdescription
destPathstring/dist.zipCompress the packaging results
onErrorfunctionnoopExecuted when the packaging error is performed
onFinishfunctionnoopThe package is executed
noZipbooleanfalsetrue: just copy with destPath option
0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago