Skip to content

Instantly share code, notes, and snippets.

@mgreer
Created July 25, 2018 21:27
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/6d8bb615bb42f1d892919356816e732d to your computer and use it in GitHub Desktop.
Save mgreer/6d8bb615bb42f1d892919356816e732d 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,
// Merge all the Stylus into one file
styles: {
name: 'styles',
test: /\.(styl)$/,
enforce: true,
},
},
},
runtimeChunk: {
name: 'manifest',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment