Skip to content

Instantly share code, notes, and snippets.

@mgreer
Last active July 25, 2018 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgreer/13b1a1d464d1d6aadc7ebaa4413897b5 to your computer and use it in GitHub Desktop.
Save mgreer/13b1a1d464d1d6aadc7ebaa4413897b5 to your computer and use it in GitHub Desktop.
config.optimization = {
minimizer: [
new UglifyJsPlugin({
parallel: true,
sourceMap: true,
}),
],
splitChunks: {
chunks: 'initial',
cacheGroups: {
default: {
reuseExistingChunk: true,
minChunks: 2,
priority: -20,
},
vendors: false,
  },
 },
 runtimeChunk: {
  name: 'manifest',
 },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment