![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
mfyj
这个作者很懒,什么都没留下…
展开
-
create-react-app按需加载antd
首先吐槽一下react的开发团队,没事就改webpack配置,真tm服了 下载依赖包 yarn add less less-loader -S yarn add babel-plugin-import -D 配置package.json "plugins": [ ["import", { "libraryName": "antd", "li...转载 2019-04-08 15:07:42 · 219 阅读 · 0 评论 -
react项目多api跨域配置文件
配置文件路径 /src/setupProxy.js 配置文件内容 const proxy = require('http-proxy-middleware') module.exports = function(app) { app.use(proxy('/api', { target: 'http://api.kylin.eosbeijing.one:8880', se...原创 2019-04-15 09:24:43 · 466 阅读 · 0 评论