osredm-comp-custom/vue.config.js

29 lines
423 B
JavaScript
Raw Normal View History

2022-05-29 09:11:13 +08:00
module.exports = {
runtimeCompiler: true,
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].title = '红山开源平台'
return args
})
},
devServer: {
port:8020,
proxy: {
'/api': {
2022-06-06 17:20:41 +08:00
target: 'http://localhost:8010',
2022-05-29 09:11:13 +08:00
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}
},
// 此处开启 https
https: false,
}
}