manifest.json -> h5 -> devServer -> https 设为true 那proxy代理就不生效
"h5": {
"devServer": {
"port": 8080,
"disableHostCheck": true,
"https": true,
"proxy": {
"/dpc": {
"target": "https://192.168.1.102",
"changeOrigin": true,
"secure": false,
"pathRewrite":{
"^/dpc": "/"
}
}
}
}
}
d***@163.com
vue.config.js怎么实现的,可以看下源码吗?
2021-05-20 15:33