36 lines
522 B
JavaScript
36 lines
522 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:8001',
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/api': ''
|
|
}
|
|
},
|
|
'/script':{
|
|
target: 'http://localhost:8888',
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/script': ''
|
|
}
|
|
}
|
|
},
|
|
// 此处开启 https
|
|
https: false,
|
|
|
|
}
|
|
}
|