Skip to content

Instantly share code, notes, and snippets.

@dawncold
Last active January 22, 2017 09:09
Show Gist options
  • Save dawncold/4227b9f6793dc65a5f290d79e5d935de to your computer and use it in GitHub Desktop.
Save dawncold/4227b9f6793dc65a5f290d79e5d935de to your computer and use it in GitHub Desktop.
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks: (module, count) => {
var userRequest = module.userRequest;
if (typeof userRequest !== 'string') {
return false;
}
return userRequest.indexOf('node_modules') >= 0;
}
}),
new webpack.optimize.CommonsChunkPlugin('manifest'),
new InlineManifestWebpackPlugin(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment