-
Notifications
You must be signed in to change notification settings - Fork 124
/
vue.config.js
33 lines (33 loc) · 1.09 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
/*
* @Description:
* @Version: 1.668
* @Autor: Hawk
* @Date: 2021-06-21 16:18:28
* @LastEditors: Hawk
* @LastEditTime: 2021-09-30 08:52:45
*/
module.exports = {
indexPath: '../../../../../addons/cesiummapv/view/index/vue3.html', // bulid发布后,首页html位置
publicPath: '/assets/addons/cesiummapv/vue3/', // 基本路径 http://map.217dan.com/assets/addons/cesiummapv/vue3/
outputDir: '../../../public/assets/addons/cesiummapv/vue3', // bulid发布后,资源的导出目录
assetsDir: '../../../../assets/addons/cesiummapv/vue3/', // 静态资源目录 ../../../../assets/addons/cesiummapv/vue3/
productionSourceMap: false,
devServer: {
proxy: {
'/api': {
target: 'http://map.217dan.com/addons/cesiummapv', // 跨域目标主机,自行修改
changeOrigin: true,
pathRewrite: {
'^/api': '', // 重写地址
},
},
'/map_asset': {
target: 'http://myhome.217dan.com:8081',
changeOrigin: true,
pathRewrite: {
'^/map_asset': '',
},
},
},
},
}