mirror of https://gitee.com/answerdev/answer.git
fix: remove unused code
This commit is contained in:
parent
56ece35517
commit
6eca3848d8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue