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: remove unused code

shuai6eca3848d801
diff --git a/ui/config-overrides.js b/ui/config-overrides.js
index 442469e6..a82d9822 100644
--- a/ui/config-overrides.js
+++ b/ui/config-overrides.js
@@ -1,7 +1,6 @@
const {
addWebpackModuleRule,
addWebpackAlias,
- // setWebpackOptimizationSplitChunks,
} = require("customize-cra");
const path = require("path");
@@ -19,15 +18,6 @@ module.exports = {
use: "yaml-loader"
})(config);
- // if (process.env.NODE_ENV === "production") {
- // setWebpackOptimizationSplitChunks({
- // chunks: "all",
- // maxInitialRequests: 20,
- // maxAsyncRequests: 20,
- // minSize: 1024 * 5,
- // })(config);
- // }
-
// add i18n dir to ModuleScopePlugin allowedPaths
const moduleScopePlugin = config.resolve.plugins.find(_ => _.constructor.name === "ModuleScopePlugin");
if (moduleScopePlugin) {