- 这是一个备用的react开发脚手架
- 采用BrowserHistory的异步加载
- 支持打包预览
- 支持开启本地模拟生产环境的服务
- 运行开发环境。
npm start
- 打包生产代码
npm run build
- 预览打包模块
npm run analyze
- 开启本地的生产环境(模拟BrowserHistory)
serve -s dist
react BrowserHistory es6 jsx react-router 异步加载 react脚手架 webpack4 代码分割 极致渲染
npm start
npm run build
npm run analyze
serve -s dist
react BrowserHistory es6 jsx react-router 异步加载 react脚手架 webpack4 代码分割 极致渲染