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': ''
|
|
|
|
}
|
2022-06-28 18:16:37 +08:00
|
|
|
},
|
|
|
|
'/script':{
|
|
|
|
target: 'http://localhost:8888',
|
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {
|
|
|
|
'^/script': ''
|
|
|
|
}
|
2022-05-29 09:11:13 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
// 此处开启 https
|
|
|
|
https: false,
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|