Jpom/web-vue/vue.config.js

42 lines
977 B
JavaScript
Raw Normal View History

2020-11-01 19:37:30 +08:00
// vue.config.js
module.exports = {
// 输出目录
2020-11-02 12:00:39 +08:00
outputDir: '../modules/server/src/main/resources/dist',
// 代理设置
devServer: {
2020-12-01 18:42:53 +08:00
proxy: {
// websocket
'/ssh': {
target: 'ws://localhost:2122',
// true/false: if you want to proxy websockets
ws: false,
logLevel: 'debug'
},
2020-12-03 11:56:49 +08:00
'/tomcat_log': {
target: 'ws://localhost:2122',
// true/false: if you want to proxy websockets
ws: false,
logLevel: 'debug'
},
2020-12-17 16:43:20 +08:00
'/console': {
target: 'ws://localhost:2122',
// true/false: if you want to proxy websockets
ws: false,
logLevel: 'debug'
},
2020-12-01 18:42:53 +08:00
// http
'/*': {
target: 'http://localhost: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项目管理系统'
return args
})
2020-11-02 12:00:39 +08:00
}
2020-11-01 19:37:30 +08:00
}