npm run build:chrome_dev_host
npm run start
npm run build:chrome_pro
手动配置规则
window._forward.config = {
proxy: new Map([
[
'https://dev.zcycdn.com/web-cs-robot-front/cs-robot/umi.(.*).js', // https://dev.zcycdn.com/web-cs-robot-front/cs-robot/umi.(.*).js
'https://localhost:8000/cs-robot/umi.js', // http://127.0.0.1:3000/index.js
],
[
'https://dev.zcycdn.com/web-cs-robot-front/cs-robot/umi.(.*).css',
'https://localhost:8000/cs-robot/umi.css', //
],
]),
};
assets 代理
接口 代理
本地mock 代理
帮助文档: https://www.yuque.com/luoxuan-nir7u/mdzc63/xcb176ahlhis78w4?singleDoc# 《supertools》