This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch feat/1.3.0/ui in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit af310a0f44764920b3053a914617951f151057d4 Author: shuai <[email protected]> AuthorDate: Thu Mar 7 10:07:22 2024 +0800 fix: components split chunks --- ui/config-overrides.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/config-overrides.js b/ui/config-overrides.js index 9d1a3a7a..0df95a9b 100644 --- a/ui/config-overrides.js +++ b/ui/config-overrides.js @@ -44,6 +44,14 @@ module.exports = { minChunks: 2, cacheGroups: { automaticNamePrefix: 'chunk', + components: { + test: /[\\/]components[\\/]/, + name: 'components', + priority: 14, + reuseExistingChunk: true, + minChunks: 1, + chunks: 'initial', + }, i18next: { name: 'i18next', test: /[\/]node_modules[\/](i18next)[\/]/,
