Commit bfa9a32f authored by sorrycc's avatar sorrycc Committed by 陈帅

Only enable hardSource and dll for mac

parent 8f4c3f6f
......@@ -20,7 +20,14 @@ export default {
default: 'zh-CN', // default zh-CN
baseNavigator: true, // default true, when it is true, will use `navigator.language` overwrite default
},
dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'],
...(
require('os').platform() === 'darwin'
? {
dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'],
hardSource: true,
}
: {}
),
},
],
],
......
......@@ -6,9 +6,9 @@
"scripts": {
"precommit": "npm run lint-staged",
"presite": "npm run generate-mock && cd functions && npm install",
"start": "cross-env umi dev",
"start": "umi dev",
"start:no-mock": "cross-env MOCK=none umi dev",
"build": "cross-env umi build",
"build": "umi build",
"site": "npm run presite && npm run build && firebase deploy",
"analyze": "cross-env ANALYZE=1 umi build",
"lint:style": "stylelint \"src/**/*.less\" --syntax less",
......
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