fix: remove unused code

This commit is contained in:
shuai 2023-04-18 18:03:36 +08:00
parent 56ece35517
commit 6eca3848d8
1 changed files with 0 additions and 10 deletions

View File

@ -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) {