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 {
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue