mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 11:58:01 +08:00
50 lines
1.2 KiB
JavaScript
50 lines
1.2 KiB
JavaScript
// vue.config.js
|
|
module.exports = {
|
|
// 输出目录
|
|
outputDir: '../modules/server/src/main/resources/dist',
|
|
// 控制静态资源使用相对路径
|
|
publicPath: './',
|
|
// 代理设置
|
|
devServer: {
|
|
port: 3000,
|
|
proxy: {
|
|
// websocket
|
|
'/ssh': {
|
|
target: 'ws://localhost:2122',
|
|
// true/false: if you want to proxy websockets
|
|
ws: false,
|
|
secure: false,
|
|
},
|
|
'/tomcat_log': {
|
|
target: 'ws://localhost:2122',
|
|
// true/false: if you want to proxy websockets
|
|
ws: false,
|
|
secure: false,
|
|
},
|
|
'/console': {
|
|
target: 'ws://localhost:2122',
|
|
// true/false: if you want to proxy websockets
|
|
ws: false,
|
|
secure: false,
|
|
},
|
|
'/script_run': {
|
|
target: 'ws://localhost:2122',
|
|
// true/false: if you want to proxy websockets
|
|
ws: false,
|
|
secure: false,
|
|
},
|
|
// http
|
|
'/*': {
|
|
target: 'http://localhost:2122',
|
|
timeout: 10 * 60 * 1000
|
|
}
|
|
},
|
|
},
|
|
chainWebpack: config => {
|
|
config.plugin('html')
|
|
.tap(args => {
|
|
args[0].title= 'Jpom项目管理系统'
|
|
return args
|
|
})
|
|
}
|
|
} |