forked from osredm_test/osredm-comp-custom
29 lines
423 B
JavaScript
29 lines
423 B
JavaScript
module.exports = {
|
|
runtimeCompiler: true,
|
|
|
|
chainWebpack: config => {
|
|
config
|
|
.plugin('html')
|
|
.tap(args => {
|
|
args[0].title = '红山开源平台'
|
|
return args
|
|
})
|
|
|
|
},
|
|
devServer: {
|
|
port:8020,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8081',
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/api': ''
|
|
}
|
|
}
|
|
},
|
|
// 此处开启 https
|
|
https: false,
|
|
|
|
}
|
|
}
|