You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2024/04/26 02:08:53 UTC
(incubator-answer) 04/09: fix: ui config-overrides update
This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 4c2083d32d86d0661351015a71deab46cbcdc77e
Author: shuai <li...@sifou.com>
AuthorDate: Fri Apr 19 17:41:27 2024 +0800
fix: ui config-overrides update
---
ui/config-overrides.js | 36 +++++++++---------------------------
1 file changed, 9 insertions(+), 27 deletions(-)
diff --git a/ui/config-overrides.js b/ui/config-overrides.js
index 4be4efc1..469974bc 100644
--- a/ui/config-overrides.js
+++ b/ui/config-overrides.js
@@ -61,6 +61,15 @@ module.exports = {
minChunks: 1,
chunks: 'initial',
},
+ mix2: {
+ name: 'chunk-mix2',
+ test: /[\/]node_modules[\/](@remix-run|@restart|axios|diff)[\/]/,
+ filename: 'static/js/[name].[contenthash:8].chunk.js',
+ priority: 11,
+ reuseExistingChunk: true,
+ minChunks: 1,
+ chunks: 'initial',
+ },
reactBootstrap: {
name: 'react-bootstrap',
test: /[\/]node_modules[\/](react-bootstrap)[\/]/,
@@ -70,15 +79,6 @@ module.exports = {
chunks: 'initial',
reuseExistingChunk: true,
},
- // lodash: {
- // name: 'lodash',
- // test: /[\/]node_modules[\/](lodash)[\/]/,
- // filename: 'static/js/[name].[contenthash:8].chunk.js',
- // priority: 10,
- // reuseExistingChunk: true,
- // minChunks: 1,
- // chunks: 'initial',
- // },
codemirror: {
name: 'codemirror',
test: /[\/]node_modules[\/](codemirror)[\/]/,
@@ -86,24 +86,6 @@ module.exports = {
reuseExistingChunk: true,
enforce: true,
},
- // nextShare: {
- // name: 'next-share',
- // test: /[\/]node_modules[\/](next-share)[\/]/,
- // filename: 'static/js/[name].[contenthash:8].chunk.js',
- // priority: 8,
- // reuseExistingChunk: true,
- // minChunks: 1,
- // chunks: 'initial',
- // },
- // marked: {
- // name: 'marked',
- // test: /[\/]node_modules[\/](marked)[\/]/,
- // filename: 'static/js/[name].[contenthash:8].chunk.js',
- // priority: 7,
- // reuseExistingChunk: true,
- // minChunks: 1,
- // chunks: 'initial',
- // },
reactDom: {
name: 'react-dom',
test: /[\/]node_modules[\/](react-dom)[\/]/,