From 6eca3848d80140da4301712a65bc595cb902be91 Mon Sep 17 00:00:00 2001 From: shuai Date: Tue, 18 Apr 2023 18:03:36 +0800 Subject: [PATCH] fix: remove unused code --- ui/config-overrides.js | 10 ---------- 1 file changed, 10 deletions(-) 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) {