example use antd, you can remove it.
- css-module
- hot-reload
- split code such as react,react-dom.. in vender.
- uglify when dist
- source-map when dev
- es6 stage-0
npm install
npm run start
visit localhost:3000
npm run dist
.
├── README.md
├── config // webpack.config
├── dist // product dist
├── hot-patch.js // for hot-reload
├── node_modules
├── package.json
└── src
├── asserts // images...
├── components
├── index.html
├── main.js
├── routes // async components for route
└── style
├── config.less // set global parameter
└── index.less
hot-path.js use in the ./src/main.js for hot-reload css-module and react (it implement by a hack way,but useful)
import hotPatch from '../hot-patch';
// for hot reload
hotPatch(module);
es6 stage-0
CSS-module
antd,React,react-route,redux,redux-saga