# magic-script **Repository Path**: magic-react/magic-script ## Basic Information - **Project Name**: magic-script - **Description**: 打包工具 - **Primary Language**: JavaScript - **License**: MulanPSL-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-08 - **Last Updated**: 2022-11-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # magic-scripts #### 介绍 一个基于react+antd+antd-pro 开箱即用的脚手架,后端是若依,因为若依没有react版本,社区的不太好用,就决定自己搞一个 ### 联调后端地址 在magic.config.js 中 添加 ```js proxy: { '/api': { target: 'http://110.42.168.32:8080', // 代理地址 pathRewrite: { '^/api': '', }, // 默认代理服务器,会以我们实际在浏览器请求的主机名【localhost:8080】,作为代理服务器的主机名, // 然后代理服务器会带上这个主机名,去请求github,然而 github是不认识 【localhost:8080】 // changeOrigin: true 就是以实际代理请求发生过程中的主机名去请求,如:代理服务器的主机名 changeOrigin: true, }, }, ```