Skip to content

webpack4 + react16 + react-router4 + mobx4 + ant design

Notifications You must be signed in to change notification settings

Sky-Young/react-starter-kit

 
 

Repository files navigation

react-starter-kit

React Ant Design Mobx

Preview:https://beverle-y.github.io/react-starter-kit

With redux:react-redux-starter-kit

Quick Start

Down

git clone https://github.com/bevelery/react-starter-kit.git

Install

yarn install

Dll

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

Run

npm start

Build

npm run build

Publish CDN (Recommend)

Change the "publicPath" in "project.config.js" to the absolute path of the server.

Publish statics

Modify the "webpack" configuration to place all files in the same directory.

Ps

(It is now ready to be injected dynamically without having to change it manually)

关于 dll 的说明:本项目使用 yarn 下载依赖包,有些同学习惯用 npm、cnpm,这样因为没有 lock 文件会导致依赖包的版本不同,致使 dll 的 hash 不同于本项目,所以有些人会遇到 404 或者资源没找到等情况,这种情况下只要改一下 html 引用的路径即可。

Log

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

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

About

webpack4 + react16 + react-router4 + mobx4 + ant design

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.3%
  • CSS 15.5%
  • HTML 1.2%