Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: ui config-overrides update

shuai4c2083d32d86
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)[\/]/,