https://github.com/proyang/react-scaffold
react脚手架
https://github.com/proyang/react-scaffold
Last synced: over 1 year ago
JSON representation
react脚手架
- Host: GitHub
- URL: https://github.com/proyang/react-scaffold
- Owner: proYang
- Created: 2017-08-22T09:39:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T05:53:14.000Z (about 7 years ago)
- Last Synced: 2025-01-28T05:27:39.352Z (over 1 year ago)
- Language: HTML
- Size: 683 KB
- Stars: 7
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-scaffold
> 根据vue脚手架项目改装
## description
**react脚手架** 项目。
- 支持开发环境热更新
- 支持`eslint`实时检测 `(js|jsx)`
- 支持`React`浏览器插件
- 支持移动端相关问题适配(300ms延迟、屏幕大小、兼容等问题)
- 支持`PostCSS`、`CSS-Module`,生产环境针对`CSS`类名做极限压缩处理
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
```
## Reference
>
- [webpack热重载](https://doc.webpack-china.org/guides/hot-module-replacement/)
- [webpack与react的运行时打包与热更新](http://www.chardlau.com/2017/05/04/webpack-and-react-hot-replacement/)
- [解决reducer更改后热更新](https://github.com/aemoe/fairy/issues/3)
- [高效压缩CSS文件束(bundle)的体积](https://zhuanlan.zhihu.com/p/28019808)
- [vw vh移动端页面的适配](http://www.w3cplus.com/css/vw-for-layout.html)