-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.umirc.js
46 lines (44 loc) · 954 Bytes
/
.umirc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { resolve } from "path";
export default {
treeShaking: true,
publicPath: './',
history: 'hash',
hash: true,
externals: {
echarts: 'window.echarts'
},
plugins: [
['umi-plugin-react', {
antd: true,
dva: true,
dynamicImport: {
webpackChunkName: true,
loadingComponent: '../src/components/RouteLoading/index.js',
},
title: 'react-Echarts',
dll: false,
locale: {
enable: false,
default: 'en-US',
},
routes: {
exclude: [
/models\//,
/services\//,
/model\.(t|j)sx?$/,
/service\.(t|j)sx?$/,
/components\//,
],
},
}],
],
alias: {
"@": resolve(__dirname, "./src"),
'@components': resolve(__dirname, "./src/components"),
'@config': resolve(__dirname, "./src/utils/config"),
},
}
// 测试:
// npm test
// 生成测试报告:
// npm test -- --coverage