Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
})
];
@maxwaiyaki

This comment has been minimized.

Copy link

@maxwaiyaki maxwaiyaki commented Mar 18, 2020

Nudge...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment