-
-
Save amowu/f55ade4eae3fc1263692b63ad795ca2f to your computer and use it in GitHub Desktop.
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 plugins = [ | |
// extract vendor and webpack's module manifest | |
new webpack.optimize.CommonsChunkPlugin({ | |
names: [ 'vendor', 'manifest' ], | |
minChunks: Infinity | |
}), | |
// extract common modules from all the chunks (requires no 'name' property) | |
new webpack.optimize.CommonsChunkPlugin({ | |
async: true, | |
children: true, | |
minChunks: 4 | |
}) | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment