-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
44 lines (41 loc) · 1.04 KB
/
vue.config.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
/******************************************************************************
* Copyright (c) 2019. *
* Author: Jarvis.wang $user *
* Email: wangjia_1919@aliyun.com *
******************************************************************************/
module.exports = {
pages: {
index: {
entry: 'examples/main.js',
template: 'public/index.html',
filename: 'index.html'
}
},
chainWebpack: config => {
config.resolve.alias
.set('vue$', 'vue/dist/vue.js')
},
configureWebpack: {
performance: {
maxAssetSize: 50000
}
},
devServer: {
host: '0.0.0.0',
https: false,
port: 13344,
hotOnly: false,
proxy: {
'/api': {
target: 'http://localhost:3344',
changeOrigin: true,
pathRewrite: {
'^/api': ''
},
cookieDomainRewrite: {
'*': 'localhost'
}
}
}
}
}