2023-08-10 01:16:23 +08:00
|
|
|
const { defineConfig } = require('@vue/cli-service')
|
|
|
|
module.exports = defineConfig({
|
|
|
|
transpileDependencies: true,
|
2023-08-25 00:36:59 +08:00
|
|
|
publicPath :'./' ,
|
2023-08-10 01:16:23 +08:00
|
|
|
productionSourceMap:false,
|
|
|
|
devServer: {
|
|
|
|
host: '0.0.0.0',
|
|
|
|
port: 3000,
|
|
|
|
open: true,
|
|
|
|
proxy: {
|
2023-08-25 00:36:59 +08:00
|
|
|
// '/':{
|
|
|
|
// target: `http://127.0.0.1/`,
|
|
|
|
// changeOrigin: true,
|
|
|
|
// pathRewrite: {
|
|
|
|
// ['^/']:''
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
'/profile/upload':{
|
|
|
|
target: `http://62.234.3.186/profile/upload`,
|
2023-08-15 23:08:27 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {
|
2023-08-25 00:36:59 +08:00
|
|
|
'^/profile/upload':'/'
|
2023-08-15 23:08:27 +08:00
|
|
|
}
|
|
|
|
},
|
2023-08-25 00:36:59 +08:00
|
|
|
'/jhapi/profile/upload':{
|
|
|
|
target: `http://62.234.3.186/jhapi/profile/upload`,
|
|
|
|
//target: `http://127.0.0.1:8090/jhapi/profile`,
|
2023-08-15 23:08:27 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {
|
2023-08-25 00:36:59 +08:00
|
|
|
'^/jhapi/profile/upload':'/'
|
2023-08-15 23:08:27 +08:00
|
|
|
}
|
|
|
|
},
|
2023-08-10 01:16:23 +08:00
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
|
//target: `http://62.234.3.186/jhapi`,
|
|
|
|
target: `http://127.0.0.1:8090/jhapi`,
|
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {
|
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
|
|
}
|
2023-08-15 23:08:27 +08:00
|
|
|
},
|
2023-08-10 01:16:23 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
pages:{
|
|
|
|
index:{
|
|
|
|
entry:'src/pages/index.js',
|
|
|
|
template:'public/index.html',
|
|
|
|
title:'项目概况',
|
|
|
|
filename:'index.html'
|
|
|
|
},
|
|
|
|
projectDetail:{
|
|
|
|
entry:'src/pages/projectDetail.js',
|
|
|
|
template:'public/index.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'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
configureWebpack:{
|
|
|
|
externals:{
|
|
|
|
'vue':"Vue",
|
|
|
|
'element-ui':"ELEMENT"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
})
|