演示地址:https://beverle-y.github.io/react-starter-kit
git clone https://github.com/bevelery/react-starter-kit.git
yarn install
第一次运行需要打包vendor,仅运行一次。当依赖(vendor)改变时需重新打包,更改index.html内引入的路径。
npm run dll
npm start
npm run build
将project.config.js内publicPath改为服务器绝对路径。
若没有CDN,只能发布静态资源,需修改webpack配置,将所有文件放置在同一目录下。
2018-07-20
- 修改fonts和一些less的文件位置
2018-05-11
-
update webpack 3 to 4.8.1
- development (time):4.8s -> 3.8s
- production (time):11.5s -> 5.4s
- size:916kb -> 747kb
- refresh:-100ms
2018-03-29
- 全局Loading
- message提示
2018-03-28
- 修复Right缺少route props