Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jsartisan/3f36263601ed61bff59286a13d51a917 to your computer and use it in GitHub Desktop.
Save jsartisan/3f36263601ed61bff59286a13d51a917 to your computer and use it in GitHub Desktop.
Zipping the Build folder
const WebpackZipPlugin = require('webpack-zip-plugin');
if (isDevelopment === false) {
plugins = plugins.concat([
// ...
new WebpackZipPlugin({
initialFile: 'build',
endPath: './',
zipName: 'build.zip',
}),
]);
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment