2.5.26 • Published 21 days 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
21 days ago
2.5.26-alpha.1710126501.0
2 months ago
2.5.26
2 months ago
2.5.26-alpha.1709143224.0
2 months ago
2.5.26-alpha.1709136968.0
2 months ago
2.5.25-alpha.1709135426.0
2 months ago
2.5.25
3 months ago
2.5.23
3 months ago
2.5.24
3 months ago
2.5.23-alpha.1707383866.0
3 months ago
2.5.23-alpha.1707390213.0
3 months ago
2.5.23-alpha.1707401616.0
3 months ago
2.5.23-alpha.1707244387.0
3 months ago
2.5.23-alpha.1707282212.0
3 months ago
2.5.23-alpha.1707248747.0
3 months ago
2.5.23-alpha.1707245597.0
3 months ago
2.5.23-alpha.1707287569.0
3 months ago
2.5.23-alpha.1707212485.0
3 months ago
2.5.22
4 months ago
2.5.21
4 months ago
2.5.20
5 months ago
2.5.19
5 months ago
2.5.18
5 months ago