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

fix: dll and analyze

parent b16102fb
......@@ -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,
}
: {}),
......
......@@ -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",
......
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