|
@ -22,16 +22,23 @@ module.exports = merge(common, mf, { |
|
|
|
|
|
|
|
|
splitChunks: { |
|
|
splitChunks: { |
|
|
cacheGroups: { |
|
|
cacheGroups: { |
|
|
|
|
|
'shared': { |
|
|
|
|
|
name: 'vue', |
|
|
|
|
|
test: /[\\/]node_modules[\\/](axios|dayjs|exceljs|file-saver|luckyexcel|mockjs)[\\/]/, |
|
|
|
|
|
priority: 20, |
|
|
|
|
|
chunks: 'all', |
|
|
|
|
|
enforce: true |
|
|
|
|
|
}, |
|
|
'vue': { |
|
|
'vue': { |
|
|
name: 'vue', |
|
|
name: 'vue', |
|
|
test: /[\\/]node_modules[\\/](vue|vue-dompurify-html|vue-i18n|vue-router)[\\/]/, |
|
|
test: /[\\/]node_modules[\\/](vue|vue-dompurify-html|vue-i18n|vue-router|pinia|@vueuse[\\/]core)[\\/]/, |
|
|
priority: 20, |
|
|
priority: 20, |
|
|
chunks: 'all', |
|
|
chunks: 'all', |
|
|
enforce: true |
|
|
enforce: true |
|
|
}, |
|
|
}, |
|
|
'dnd':{ |
|
|
'codemirror':{ |
|
|
name: 'dnd', |
|
|
name: 'codemirror', |
|
|
test: /[\\/]node_modules[\\/](vue3-dnd|react-dnd-html5-backend|@vueuse[\\/]core)[\\/]/, |
|
|
test: /[\\/]node_modules[\\/](codemirror|vue-codemirror6|@codemirror[\\/]autocomplete|@codemirror[\\/]commands|@codemirror[\\/]lang-html|@codemirror[\\/]lang-java|@codemirror[\\/]lang-javascript|@codemirror[\\/]lang-json|@codemirror[\\/]lang-sql|@codemirror[\\/]lang-xml|@codemirror[\\/]language|@codemirror[\\/]search|@codemirror[\\/]state|@codemirror[\\/]view)[\\/]/, |
|
|
priority: 20, |
|
|
priority: 20, |
|
|
chunks: 'all', |
|
|
chunks: 'all', |
|
|
enforce: true |
|
|
enforce: true |
|
@ -43,16 +50,16 @@ module.exports = merge(common, mf, { |
|
|
chunks: 'all', |
|
|
chunks: 'all', |
|
|
enforce: true |
|
|
enforce: true |
|
|
}, |
|
|
}, |
|
|
'excel': { |
|
|
'platform-core': { |
|
|
name: 'excel', |
|
|
name: 'platform-core', |
|
|
test: /[\\/]node_modules[\\/](exceljs|luckyexcel|)[\\/]/, |
|
|
test: /[\\/]node_modules[\\/]platform-core[\\/]/, |
|
|
priority: 20, |
|
|
priority: 20, |
|
|
chunks: 'all', |
|
|
chunks: 'all', |
|
|
enforce: true |
|
|
enforce: true |
|
|
}, |
|
|
}, |
|
|
'platform-core': { |
|
|
'echarts': { |
|
|
name: 'platform-core', |
|
|
name: 'echarts', |
|
|
test: /[\\/]node_modules[\\/]platform-core[\\/]/, |
|
|
test: /[\\/]node_modules[\\/]echarts[\\/]/, |
|
|
priority: 20, |
|
|
priority: 20, |
|
|
chunks: 'all', |
|
|
chunks: 'all', |
|
|
enforce: true |
|
|
enforce: true |
|
|