Jpom/web-vue/vue.config.js

42 lines
977 B
JavaScript

// vue.config.js
module.exports = {
// 输出目录
outputDir: '../modules/server/src/main/resources/dist',
// 代理设置
devServer: {
proxy: {
// websocket
'/ssh': {
target: 'ws://localhost:2122',
// true/false: if you want to proxy websockets
ws: false,
logLevel: 'debug'
},
'/tomcat_log': {
target: 'ws://localhost:2122',
// true/false: if you want to proxy websockets
ws: false,
logLevel: 'debug'
},
'/console': {
target: 'ws://localhost:2122',
// true/false: if you want to proxy websockets
ws: false,
logLevel: 'debug'
},
// http
'/*': {
target: 'http://localhost:2122',
timeout: 10 * 60 * 1000
}
}
},
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].title= 'Jpom项目管理系统'
return args
})
}
}