Preview:https://beverle-y.github.io/react-starter-kit
With redux:react-redux-starter-kit
git clone https://github.com/bevelery/react-starter-kit.git
yarn install
The first time, you need to packaged the vendor and only run it once. When the vendor changes, it needs to be repackaged.
npm run dll
npm start
npm run build
Change the "publicPath" in "project.config.js" to the absolute path of the server.
Modify the "webpack" configuration to place all files in the same directory.
(It is now ready to be injected dynamically without having to change it manually)
关于 dll 的说明:本项目使用 yarn 下载依赖包,有些同学习惯用 npm、cnpm,这样因为没有 lock 文件会导致依赖包的版本不同,致使 dll 的 hash 不同于本项目,所以有些人会遇到 404 或者资源没找到等情况,这种情况下只要改一下 html 引用的路径即可。
2018-10-26
- Add ESLint (You can control the switch in "project.config.js")
2018-10-22
- Upgrade to @babel 7
2018-10-18
- Dynamically inject
dll
to index.html at compile time
2018-07-23
- With redux:react-redux-starter-kit
2018-07-20
- Modify the location of some folders
2018-05-11
-
Upgrade to webpack@4.21.0
- development (time):4.8s -> 3.8s
- production (time):11.5s -> 5.4s
- size:916kb -> 747kb
- refresh:-100ms
2018-03-29
- Global loading
- Message
2018-03-28
- Repairing the Right lacks the route props