Webpack: Split out unicons and bizcharts (#28374)

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

No files matched your search

+6
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',