Skip to content
React+redux+reactRoute+antd脚手架
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mock
public
src
.babelrc
.gitignore
README.MD
package.json
postcss.config.js
webpack.common.config.js
webpack.config.js
webpack.dev.config.js

README.MD

this is a react falsework demo

react (v16) + redux + react-router v4 + redux-thunk + react-hot-loader + es6 + webpack3 + antd

开发坏境启动

  1. npm install
  2. npm start
  3. npm run mock 打开json-server,模拟ajax数据
  4. 浏览器打开http://localhost:3000

生产坏境部署

  1. npm run build
  2. 拷贝dist文件夹至服务器即可

热更新使用说明:

参照pages/Home

import {hot} from 'react-hot-loader';
export default hot(module)(connect(mapStateToProps, mapDispatchToProps)(Home));

文件目录

.
├── README.MD  
├── mock  
├── node_modules
├── package.json
├── postcss.config.js
├── public 
├── src 页面目录
├── webpack.common.config.js  公共配置
├── webpack.config.js   生产环境配置
└── webpack.dev.config.js  开发环境配置

本脚手架还未投入生产环境,慎用,且不定期维护。

You can’t perform that action at this time.