-
Notifications
You must be signed in to change notification settings - Fork 3
/
.umirc.js
55 lines (55 loc) · 1.29 KB
/
.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
47
48
49
50
51
52
53
54
55
/*
* @Author: RojerChen
* @Date: 2020-09-10 12:30:28
* @LastEditors: RojerChen
* @LastEditTime: 2020-09-11 09:56:06
* @FilePath: /fa-forever/.umirc.js
* @Company: freesailing.cn
*/
// ref: https://umijs.org/config/
export default {
define: {
'process.env.VERSION': 'V1.5.4',
'process.env.APPNAME': 'FA FOREVER',
'process.env.APIHOST': 'http://faforever.eqistu.cn/',
},
treeShaking: true,
outputPath: './web_dist',
routes: [
{
path: '/',
component: '../layouts/index',
routes: [
{ path: '/', component: '../pages/index' },
// { path: '/twitch', component: '../pages/twitch' }, 存在跨域问题,🙅🏻♀️播放,目前还没有解决方案...
],
},
],
alias: {
'@': require('path').resolve(__dirname, 'src'),
},
hash: true,
history: 'hash',
publicPath: 'http://cdn.eqistu.cn/faforever13/',
theme: './theme-config.js',
plugins: [
// ref: https://umijs.org/plugin/umi-plugin-react.html
[
'umi-plugin-react',
{
antd: true,
dva: false,
dynamicImport: false,
title: 'web',
dll: true,
locale: {
enable: true,
default: 'en-US',
},
routes: {
exclude: [/components\//],
},
},
],
],
};