Skip to content

Instantly share code, notes, and snippets.

@adamhenson
Last active February 14, 2019 13:45
Show Gist options
  • Save adamhenson/1800dfee2b06febd223f4e159c4edab5 to your computer and use it in GitHub Desktop.
Save adamhenson/1800dfee2b06febd223f4e159c4edab5 to your computer and use it in GitHub Desktop.
A simple Webpack configuration optimization.splitChunks example
const config = {
...configuration,
entry: './src/client',
optimization: {
// https://webpack.js.org/plugins/split-chunks-plugin/#optimization-splitchunks
splitChunks: {
chunks: 'all',
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment