This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch feat/1.3.1/ui
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/feat/1.3.1/ui by this push:
     new eeb668e4 fix: ui config-overrides update
eeb668e4 is described below

commit eeb668e48a1e5725c09a07d1635d42b07e27cab8
Author: shuai <[email protected]>
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)[\/]/,

Reply via email to