forked from xy-sea/web-see-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
33 lines (32 loc) · 863 Bytes
/
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
const { defineConfig } = require('@vue/cli-service');
const { PerfseePlugin } = require('@perfsee/webpack')
module.exports = defineConfig({
devServer: {
proxy: {
'/getErrorList': {
target: 'http://localhost:8083/',
changeOrigin: false, // target是域名的话,需要这个参数,
secure: false // 设置支持https协议的代理,
},
'/getmap': {
target: 'http://localhost:8083/',
changeOrigin: false,
secure: false
},
'/getmgetRecordScreenIdp': {
target: 'http://localhost:8083/',
changeOrigin: false,
secure: false
}
}
},
configureWebpack: {
plugins: [
new PerfseePlugin({
project: 'web-see-demo',
token: 'uu9jqUfpR9awKYJy1W7/XiuaeF3J0ltNZ8551X0+hBUA=',
artifactName: 'main'
})
]
}
})