-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.js
46 lines (46 loc) · 884 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
/*
* @Author: your name
* @Date: 2018-12-26 15:29:13
* @LastEditTime: 2020-05-18 20:25:21
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /game/.umirc.js
*/
// ref: https://umijs.org/config/
export default {
antd: false,
dva: false,
dynamicImport: false,
title: '飞机大战',
dll: false,
hardSource: false,
routes: [
{
path: "/",
component: "./index",
routes: [
{
name: "index",
// icon: "smile",
path: "/",
component: "./index"
}
]
},
],
chainWebpack(config){
config.module
.rule('url-loader')
.test(/\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/)
.use('url-loader')
.loader('url-loader')
.end()
},
targets: {
chrome: 30,
firefox: 30,
safari: 9,
ie: 10,
ios: 9
}
}