109 lines
2.6 KiB
JavaScript
109 lines
2.6 KiB
JavaScript
const { defineConfig } = require('@vue/cli-service')
|
|
module.exports = defineConfig({
|
|
transpileDependencies: true,
|
|
publicPath :'/jhbs' ,
|
|
productionSourceMap:false,
|
|
devServer: {
|
|
host: '0.0.0.0',
|
|
port: 3000,
|
|
open: true,
|
|
proxy: {
|
|
// '/jhapi/profile':{
|
|
// target: `http://62.234.3.186/jhapi/profile/`,
|
|
// changeOrigin: true,
|
|
// pathRewrite: {
|
|
// '^/jhapi/profile':'/'
|
|
// }
|
|
// },
|
|
'/jhapp':{
|
|
target: `http://62.234.3.186/`,
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/jhapp':'/'
|
|
}
|
|
},
|
|
'/cesium':{
|
|
target: `http://62.234.3.186/cesium/`,
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/cesium':'/'
|
|
}
|
|
},
|
|
'/cdn':{
|
|
target: `http://62.234.3.186/cdn/`,
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/cdn':'/'
|
|
}
|
|
},
|
|
'/jhapi':{
|
|
//target: `http://62.234.3.186/jhapi/`,
|
|
target: `http://127.0.0.1:8090/jhapi/`,
|
|
//target: `http://szgc.jhncidg.com/jhapi/`,
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/jhapi':'/'
|
|
}
|
|
},
|
|
'/profile':{
|
|
//target: `http://szgc.jhncidg.com/jhapi/profile`,
|
|
target: `http://62.234.3.186/profile/`,
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/profile':'/'
|
|
}
|
|
}
|
|
}
|
|
},
|
|
/* pages:{
|
|
index:{
|
|
entry:'src/pages/index.js',
|
|
template:'public/index.html',
|
|
title:'项目概况',
|
|
filename:'index.html'
|
|
},
|
|
projectDetail:{
|
|
entry:'src/pages/projectDetail.js',
|
|
template:'public/detail.html',
|
|
title:'项目详情',
|
|
filename:'projectDetail.html'
|
|
},
|
|
projectSafety:{
|
|
entry:'src/pages/projectSafety.js',
|
|
template:'public/index.html',
|
|
title:'安全管理',
|
|
filename:'projectSafety.html'
|
|
},
|
|
projectQuality:{
|
|
entry:'src/pages/projectQuality.js',
|
|
template:'public/index.html',
|
|
title:'质量管理',
|
|
filename:'projectQuality.html'
|
|
},
|
|
projectProgress:{
|
|
entry:'src/pages/projectProgress.js',
|
|
template:'public/index.html',
|
|
title:'进度管理',
|
|
filename:'projectProgress.html'
|
|
},
|
|
projectVideo:{
|
|
entry:'src/pages/projectVideo.js',
|
|
template:'public/video.html',
|
|
title:'视频管理',
|
|
filename:'projectVideo.html'
|
|
},
|
|
projectEngin:{
|
|
entry:'src/pages/projectEngin.js',
|
|
template:'public/index.html',
|
|
title:'工程管理',
|
|
filename:'projectEngin.html'
|
|
}
|
|
},*/
|
|
configureWebpack:{
|
|
externals:{
|
|
'vue':"Vue"
|
|
}
|
|
},
|
|
|
|
})
|