Merge pull request #325 from answerdev/feat/1.0.9/ui

fix: remove unused code
This commit is contained in:
dashuai 2023-04-18 18:04:10 +08:00 committed by GitHub
commit a0db999cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

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