Created
May 31, 2018 06:38
-
-
Save jsartisan/3f36263601ed61bff59286a13d51a917 to your computer and use it in GitHub Desktop.
Zipping the Build folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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