diff --git a/config/config.js b/config/config.js index a7b96905f5abc6f34705a239b43aa07c94f715d5..55ccc0ba65b35a95a71b9e3a1f03e2108790e629 100644 --- a/config/config.js +++ b/config/config.js @@ -20,6 +20,7 @@ const plugins = [ }, dynamicImport: { loadingComponent: './components/PageLoading/index', + webpackChunkName: true, }, pwa: { workboxPluginMode: 'InjectManifest', @@ -57,6 +58,7 @@ export default { define: { APP_TYPE: process.env.APP_TYPE || '', }, + treeShaking: true, targets: { ie: 11, }, diff --git a/package.json b/package.json index 24e87d06b87c45fbf070d950594b952a33f76c90..c8ef2757c4dd81ac785afc1b6bef79e59148437f 100644 --- a/package.json +++ b/package.json @@ -95,9 +95,9 @@ "tslint": "^5.10.0", "tslint-config-prettier": "^1.10.0", "tslint-react": "^3.6.0", - "umi": "^2.3.1", + "umi": "^2.3.5", "umi-plugin-ga": "^1.1.3", - "umi-plugin-react": "^1.2.0" + "umi-plugin-react": "^1.3.4" }, "optionalDependencies": { "puppeteer": "^1.10.0"