moxun33 / react-mobx-antd-boilerplate

react16-router4--mobx-antd3--webpack4-boilerplate

Home Page:https://www.qimajiang.com/2017/10/21/React%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-mobx-antd-boilerplate 开箱即用

参考该教程从零搭建react-family框架教程搭建的 react 全家桶初始化架构, 与文章不同的是此处使用 mobx 作为状态管理器,其他部分也作了相应的调整。

UI框架方面,集成了 https://ant.design/index-cn

开发笔记 ,http://qimajiang.com/2017/10/21/React%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/

基础功能

1 react router4 路由

2 mobx 状态管理机,支持多个 stores 文件

3 跨域代理

4 chunks build

5 ESLint、prettier 和 styleLint

6 axios 请求和响应拦截器

7 懒加载

8 支持 Service Worker(生产环境)

9 etc

开发坏境启动

1 yarn

2 yarn dev

生产坏境部署

1 生成dll包,yarn dll

2 yarn build

3 拷贝dist文件夹至服务器即可

About

react16-router4--mobx-antd3--webpack4-boilerplate

https://www.qimajiang.com/2017/10/21/React%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/

License:MIT License


Languages

Language:JavaScript 98.4%Language:CSS 1.1%Language:HTML 0.5%