Last active
June 20, 2017 06:06
-
-
Save jozsefs/ec638c55af3f82f0d664ad1a316fc8af to your computer and use it in GitHub Desktop.
webpack better vendor hashing config
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
| module.exports = { | |
| output: { | |
| filename: '[name]-[chunkhash].js', | |
| }, | |
| plugins: [ | |
| new webpack.HashedModuleIdsPlugin(), | |
| new webpack.optimize.CommonsChunkPlugin({ | |
| name: 'vendor', | |
| minChunks: m => /node_modules/.test(m.context), | |
| }), | |
| new webpack.optimize.CommonsChunkPlugin({ | |
| name: 'manifest', | |
| }), | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment