https://github.com/zidoshare/react-starter
:gun: react脚手架,使用最新react,webpack2.x,react-router v4构建
https://github.com/zidoshare/react-starter
ant-design ant-motion antd boot eslint hot-reload java javascript js react starter
Last synced: 2 months ago
JSON representation
:gun: react脚手架,使用最新react,webpack2.x,react-router v4构建
- Host: GitHub
- URL: https://github.com/zidoshare/react-starter
- Owner: zidoshare
- Created: 2017-03-09T22:22:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T10:34:43.000Z (almost 9 years ago)
- Last Synced: 2025-04-28T14:47:03.306Z (about 1 year ago)
- Topics: ant-design, ant-motion, antd, boot, eslint, hot-reload, java, javascript, js, react, starter
- Language: JavaScript
- Homepage:
- Size: 245 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# react-starter
## 概览
* 如需查看如何使用,请关注项目[cyd-view](https://github.com/zidoshare/cyd-view)开源前端项目
* 使用最新的react和webpack构建的脚手架
npm install
npm run start
打开locahost:3000即可查看效果
* 生产环境使用命令
npm run build
* 打包模块大小分析
npm run analyz
## 特性
作为例子,内置antd以及ant motion。antd 已实现按需加载,大幅减少体积
内置.esformatter推荐安装esformatter进行代码格式化
内置eslint 推荐安装eslint进行代码审查
为了简单起见,暂不加入redux
样式支持css、scss、less,全部使用postcss进行了前缀处理,不用考虑浏览器兼容性