/
.feflowrc.js
97 lines (96 loc) · 2.86 KB
/
.feflowrc.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
module.exports = {
devkit: {
commands: {
dev: {
builder: "feflow-devkit-xbc-webpack4:dev",
options: {
isMinicss: false,
port: 9878
}
},
test: {
builder: "feflow-devkit-xbc-webpack4:test",
options: {
isMinicss: true
}
},
formalTest: {
builder: "feflow-devkit-xbc-webpack4:formalTest",
options: {
isMinicss: true
}
},
demo: {
builder: "feflow-devkit-xbc-webpack4:demo",
options: {
isMinicss: true
}
},
build: {
builder: "feflow-devkit-xbc-webpack4:build",
options: {
"isMinicss": true
}
}
},
commons: {
entry: "index.tsx",
isModule: true,
isMinicss: false,
hasAnalyzer: false,
analyzer: {
"analyzerPort": 3478
},
port: 1234,
externals: [
{
module: "react",
entry: "../../static/js/react16.13.1.js",
global: "React"
},
{
module: "react-dom",
entry: "../../static/js/react-dom16.13.1.js",
global: "ReactDOM"
},
{
module: "antd",
entry: "https://cdn.bootcss.com/antd/3.26.12/antd.min.js",
global: "antd"
},
],
envs: {
dev: {
envObj: {
NODE_ENV: "'development'",
API_HOST: "'http://xxx.xxx.xx.xxx:xxx'",
}
},
test: {
envObj: {
NODE_ENV: "'test'",
API_HOST: "'http://xxx.xxx.xx.xxx:xxx'",
}
},
formalTest: {
envObj: {
NODE_ENV: "'formalTest'",
API_HOST: "'http://xxx.xxx.xx.xxx:xxx'",
}
},
demo: {
envObj: {
NODE_ENV: "'demo'",
API_HOST: "'http://xxx.xxx.xx.xxx:xxx'",
}
},
build: {
envObj: {
NODE_ENV: "'production'",
API_HOST: "'http://xxx.xxx.xx.xxx:xxx'",
}
}
}
}
}
}