2.5.26 • Published 1 year ago
@dumlj/zip-webpack-plugin v2.5.26
Zip Webpack Plugin
Compressed to zip webpack plugin
BACKGROUND
Sometimes we need to push the entire project to a certain system by uploading zip
, such as ci/cd
, Chrome Extension
, etc. So it is most convenient to use a compressed file.
FEATURE
- Automatically collect emitted files by webpack.
- Trim other files by setting the
onlyZip
option. - Implemented using jszip.
INSTALL
# use npm
$ npm install --dev @dumlj/zip-webpack-plugin
# use yarn
$ yarn add --dev @dumlj/zip-webpack-plugin
# use pnpm
$ pnpm add @dumlj/zip-webpack-plugin -D
USAGE
import { ZipWebpackPlugin } from '@dumlj/zip-webpack-plugin'
export default {
plugins: [
new ZipWebpackPlugin({
// default false
lonely: false,
extras: {
'/not_import.js': '/do_import.js',
},
}),
],
}
LIVE DEMO
In the demo, the files is output to the memory, please check the console
.
Or remove the comment writeToDisk: true
from the MemfsWebpackPlugin
in webpack.config.ts
and run yarn build
.
INTERNAL DEPENDENCIES
2.5.27-alpha.1713365667.0
1 year ago
2.5.26-alpha.1710126501.0
1 year ago
2.5.26
1 year ago
2.5.26-alpha.1709143224.0
1 year ago
2.5.26-alpha.1709136968.0
1 year ago
2.5.25-alpha.1709135426.0
1 year ago
2.5.25
1 year ago
2.5.23
1 year ago
2.5.24
1 year ago
2.5.23-alpha.1707383866.0
1 year ago
2.5.23-alpha.1707390213.0
1 year ago
2.5.23-alpha.1707401616.0
1 year ago
2.5.23-alpha.1707244387.0
1 year ago
2.5.23-alpha.1707282212.0
1 year ago
2.5.23-alpha.1707248747.0
1 year ago
2.5.23-alpha.1707245597.0
1 year ago
2.5.23-alpha.1707287569.0
1 year ago
2.5.23-alpha.1707212485.0
1 year ago
2.5.22
2 years ago
2.5.21
2 years ago
2.5.20
2 years ago
2.5.19
2 years ago
2.5.18
2 years ago