Giter Site home page Giter Site logo

react-starter-kit's Introduction

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-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 [email protected]

    • 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

react-starter-kit's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.