美文网首页
基于create-react-app搭建antd-mobile项

基于create-react-app搭建antd-mobile项

作者: 笑傲江湖拎壶冲 | 来源:发表于2019-03-19 12:42 被阅读0次

按照如下步骤便可以采用antd顺利搭建按需配置的react项目

第一步 采用create-react-app创建react项目

第二步  下载antd-mobile

第三步   下载react-app-rewired作配置修改

第四步  更改package.json

第五步 下载babel-plugin-import和customize-cra按需加载组件代码和样式

第六步  配置less

第七步  在根目录下创建config-overrides.js文件插入以下代码

第八步 测试  将app.js代码覆盖如下,npm start启动程序项目搭建完成

相关文章

网友评论

      本文标题:基于create-react-app搭建antd-mobile项

      本文链接:https://www.haomeiwen.com/subject/grzwmqtx.html