-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-overrides.projects.js
95 lines (92 loc) · 1.98 KB
/
config-overrides.projects.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
const scope = process.env.BUILD_SCOPE;
const shieldHomeEntries = [
{
isReplaceMain: true,
entry: 'src/components/shield-option-home/entry/entry.tsx',
template: 'public/shield/option.html',
outPath: '/index.html',
},
];
const shieldAppEntries = [
{
isReplaceMain: true,
entry: 'src/components/shield-option-trade/entry/entry.tsx',
template: 'public/shield/option-app.html',
outPath: '/index.html',
},
];
const shieldV2AppEntries = [
{
isReplaceMain: true,
entry: 'src/components/shield-option-trade-v2/entry/entry.tsx',
template: 'public/option-app.html',
outPath: '/index.html',
},
];
const openSpaceEntries = [
{
isReplaceMain: true,
entry: 'src/components/shield-option-trade/entry/entry.tsx',
template: 'public/openspace/option-app.html',
outPath: '/index.html',
},
];
const doptionEntries = [
{
isReplaceMain: true,
entry: 'src/components/shield-option-trade/entry/entry.tsx',
template: 'public/doption/option-app.html',
outPath: '/index.html',
},
];
const fufutureEntries = [
{
isReplaceMain: true,
entry: 'src/components/shield-option-trade/entry/entry.tsx',
template: 'public/fufuture/option-app.html',
outPath: '/index.html',
},
];
const stoneEntries = [
{
isReplaceMain: true,
entry: 'src/components/shield-stone/entry/entry.tsx',
template: 'public/stone/stone.html',
outPath: '/index.html',
},
];
let entries;
switch (scope) {
case 'home': {
entries = shieldHomeEntries;
break;
}
case 'shield': {
entries = shieldAppEntries;
break;
}
case 'shieldv2': {
entries = shieldV2AppEntries;
break;
}
case 'stone': {
entries = stoneEntries;
break;
}
case 'openspace': {
entries = openSpaceEntries;
break;
}
case 'doption': {
entries = doptionEntries;
break;
}
case 'fufuture': {
entries = fufutureEntries;
break;
}
default: {
entries = shieldAppEntries;
}
}
module.exports = { entries };