代码库 fork 自https://github.com/facebook/create-react-app.git
代码库包含Create React App使用到的脚本和配置。
下面是 Create React App 的文档:
由于新的 create-react-app 使用独立库来管理模版文件,导致本脚手架会支持行不通过,故初始化的时候需要指定 create-react-app 的版本为 3.0.0
npx [email protected] xxx --scripts-version @zdzd/react-scripts
- antd 的按需引入
- lodash 的按需引入
- eslint 配置
- husky + lint-stage,对提交代码做格式化和 eslint 检查
- 可在 package.json 中配置 resolve.alias
- package.json 的 proxy 字段,支持原生 proxy 配置(参考 webpack-dev-server)
- redux、redux-saga
- react-router,v4