From 9e3722d1a0bd9e2815f21279a004228c827e1255 Mon Sep 17 00:00:00 2001 From: chencheng Date: Mon, 3 Sep 2018 22:15:46 +0800 Subject: [PATCH] fix: dll and analyze --- config/config.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/config.js b/config/config.js index dcede464..978ee3e9 100644 --- a/config/config.js +++ b/config/config.js @@ -25,7 +25,10 @@ export default { polyfills: ['ie11'], ...(!process.env.TEST && os.platform() === 'darwin' ? { - dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'], + dll: { + include: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'], + exclude: ['@babel/runtime'], + }, hardSource: true, } : {}), diff --git a/package.json b/package.json index 557f3451..a8614a90 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "precommit": "npm run lint-staged", "presite": "npm run generate-mock && cd functions && npm install", - "start": "cross-env APP_TYPE=site ANALYZE=1 umi dev", + "start": "cross-env APP_TYPE=site umi dev", "start:no-mock": "cross-env MOCK=none umi dev", "build": "umi build", "site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy", -- GitLab