Webpack: Split out unicons and bizcharts (#28374)

This commit is contained in:
kay delaney
2020-10-19 22:47:47 +01:00
committed by GitHub
parent ad657dcdc3
commit 64304dafce
2 changed files with 32 additions and 15 deletions

View File

@ -180,6 +180,12 @@ module.exports = {
chunks: 'all',
minChunks: 1,
cacheGroups: {
unicons: {
test: /[\\/]node_modules[\\/]@iconscout[\\/]react-unicons[\\/].*[jt]sx?$/,
chunks: 'initial',
priority: 20,
enforce: true,
},
moment: {
test: /[\\/]node_modules[\\/]moment[\\/].*[jt]sx?$/,
chunks: 'initial',