Skip to content

Instantly share code, notes, and snippets.

@arackaf
Created February 17, 2017 02:36
Show Gist options
  • Select an option

  • Save arackaf/9056c9eee548d29ee9dcb92025ce7a32 to your computer and use it in GitHub Desktop.

Select an option

Save arackaf/9056c9eee548d29ee9dcb92025ce7a32 to your computer and use it in GitHub Desktop.
plugins: [
(isProduction ?
new BundleAnalyzerPlugin({
analyzerMode: 'static'
}) : null),
new webpack.optimize.CommonsChunkPlugin({
name: 'node-static',
minChunks(module, count) {
var context = module.context;
return context && context.indexOf('node_modules') >= 0;
},
}),
// ......
].filter(p => p),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment