Webpack 4 plugin to zip all output files.
To begin, you'll need to install webpack-zipalls-plugin
:
npm install webpack-zipalls-plugin -D
Add the plugin to your webpack
config. For example:
webpack.config.js
module.exports = {
plugins: [
new WebpackZipallsPlugin({
filename: 'bundle'
})
]
};
then the bundle.zip
file will be in the webpack output root directory.