Skip to content

Instantly share code, notes, and snippets.

@seogi1004
Created November 23, 2018 11:41
Show Gist options
  • Save seogi1004/1a4b0c4d762d0ae38a6ca7f99bba6d7f to your computer and use it in GitHub Desktop.
Save seogi1004/1a4b0c4d762d0ae38a6ca7f99bba6d7f to your computer and use it in GitHub Desktop.
module.exports = (env) => {
const clientPath = path.resolve(__dirname, 'src/main/client');
...
return {
...
optimization: {
splitChunks: {
cacheGroups: {
common: {
test: clientPath + '/common',
chunks: 'all',
name: 'base/common'
},
modules: {
test: clientPath + '/modules',
chunks: 'all',
name: 'base/modules'
}
}
},
...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment