Commit 9e3722d1 authored by chencheng's avatar chencheng Committed by 偏右

fix: dll and analyze

parent b16102fb
...@@ -25,7 +25,10 @@ export default { ...@@ -25,7 +25,10 @@ export default {
polyfills: ['ie11'], polyfills: ['ie11'],
...(!process.env.TEST && os.platform() === 'darwin' ...(!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, hardSource: true,
} }
: {}), : {}),
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"scripts": { "scripts": {
"precommit": "npm run lint-staged", "precommit": "npm run lint-staged",
"presite": "npm run generate-mock && cd functions && npm install", "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", "start:no-mock": "cross-env MOCK=none umi dev",
"build": "umi build", "build": "umi build",
"site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy", "site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment