1.1.5 • Published 1 year ago

webpack5-build-compress-plugin v1.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

webpack5-build-compress-plugin

在项目执行build打包完成操作之后,自动生成zip文件

安装

npm:

npm i webpack5-build-compress-plugin -D

yarn:

yarn add webpack5-build-compress-plugin -D

使用

const WebpackBuildCompressPlugin = require('webpack5-build-compress-plugin')

...
plugins: [
    ...
    // 尽量放到最后一个
    new WebpackBuildCompressPlugin({
        // 文件保存的位置 默认保存到dist文件夹下
        // folderLocation: path.resolve(__dirname, "./dist")
        
        // zip包压缩等级 1-9
        compressionLevel: 9
        // 指定压缩包的名称
        // zipBuildName: "xxx"
    })
]
1.1.5

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago