react16.0 + webpack3.8 最新单页面集成模板
- 使用知识点: * react
- webpack 前端自动话打包工具
- react-router-dom
- react-redux
- redux
- babel
1.安装node.js
2.安装项目依赖包
npm install
或
yarn install
3.运行开发环境
npm run dev
4.打包生产文件
npm run build:dll //此命令一般只运行一次 请参考上面weboack构建优化文章说明
npm run build
使用flow检查的文件在顶部增加
// @flow 或者 /* @flow */ 标识
检查全部文件
npm run flow