Skip to content

Instantly share code, notes, and snippets.

@ashinzekene
Created May 2, 2020 08:47
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 ashinzekene/64f86de8f17728217438ed09c3fa5807 to your computer and use it in GitHub Desktop.
Save ashinzekene/64f86de8f17728217438ed09c3fa5807 to your computer and use it in GitHub Desktop.
optimization: {
splitChunks: {
name: false,
cacheGroups: {
commons: {
test: /[\\/]node_modules\/(react|react-dom|react-apollo|react-router|apollo-client)[\\/]/,
name: "vendor",
chunks: "all",
reuseExistingChunk: true
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment