"h5": { "title": "互联云玺", "template": "", "router": { "base": "/h5/", "mode": "hash" }, "devServer": { "https": false, "port": 5556, "proxy": { "/api": { "target": "http://47.103.26.30:8080", //目标接口域名 "changeOrigin": true, //是否跨域 "secure": false ,// 设置支持https协议的代理 "pathRewrite":{ "^/api": "" //需要rewrite重写的, } } } }, "optimization": { "treeShaking": { "enable": true } } }