Jpom/web-vue/vue.config.js

52 lines
1.2 KiB
JavaScript
Raw Normal View History

2020-11-01 19:37:30 +08:00
// vue.config.js
const IP = 'localhost'
2020-11-01 19:37:30 +08:00
module.exports = {
// 输出目录
2020-11-02 12:00:39 +08:00
outputDir: '../modules/server/src/main/resources/dist',
2021-03-02 13:01:54 +08:00
// 控制静态资源使用相对路径
publicPath: './',
2020-11-02 12:00:39 +08:00
// 代理设置
devServer: {
port: 3000,
2020-12-01 18:42:53 +08:00
proxy: {
// websocket
'/ssh': {
target: `wss://${IP}:2122`,
2020-12-01 18:42:53 +08:00
// true/false: if you want to proxy websockets
ws: false,
secure: false,
2020-12-01 18:42:53 +08:00
},
2020-12-03 11:56:49 +08:00
'/tomcat_log': {
target: `wss://${IP}:2122`,
2020-12-03 11:56:49 +08:00
// true/false: if you want to proxy websockets
ws: false,
secure: false,
2020-12-03 11:56:49 +08:00
},
2020-12-17 16:43:20 +08:00
'/console': {
target: `wss://${IP}:2122`,
2020-12-17 16:43:20 +08:00
// true/false: if you want to proxy websockets
ws: false,
secure: false,
2020-12-17 16:43:20 +08:00
},
2021-02-24 18:25:08 +08:00
'/script_run': {
target: `wss://${IP}:2122`,
2021-02-24 18:25:08 +08:00
// true/false: if you want to proxy websockets
ws: false,
secure: false,
},
2020-12-01 18:42:53 +08:00
// http
'/*': {
target: `http://${IP}:2122`,
timeout: 10 * 60 * 1000
2020-12-01 18:42:53 +08:00
}
},
2020-11-02 22:29:57 +08:00
},
chainWebpack: config => {
config.plugin('html')
.tap(args => {
args[0].title= 'Jpom项目管理系统'
2021-03-04 10:59:14 +08:00
args[0].build= new Date().getTime()
return args
})
2020-11-02 12:00:39 +08:00
}
2020-11-01 19:37:30 +08:00
}