Skip to content

Instantly share code, notes, and snippets.

@paularmstrong
Last active March 18, 2020 11:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save paularmstrong/cc18a7372010c46c65021809e095931b to your computer and use it in GitHub Desktop.
Save paularmstrong/cc18a7372010c46c65021809e095931b to your computer and use it in GitHub Desktop.
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
Copy link

Nudge...

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