Code Monkey home page Code Monkey logo

react-starter-kit's Introduction

react-starter-kit

React Ant Design Mobx

演示地址:https://beverle-y.github.io/react-starter-kit

Redux版:react-redux-starter-kit

Quick Start

Down

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

Install

yarn install

Dll

第一次运行需要打包vendor,仅运行一次。当依赖(vendor)改变时需重新打包,更改index.html内引入的路径。

npm run dll

Run

npm start

Build

npm run build

发布CDN(推荐)

将project.config.js内publicPath改为服务器绝对路径。

发布静态资源

若没有CDN,只能发布静态资源,需修改webpack配置,将所有文件放置在同一目录下。

Ps

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

Log

2018-07-23

2018-07-20

  • 修改fonts和一些less的文件位置

2018-05-11

  • update webpack 3 to 4.8.1

    • development (time):4.8s -> 3.8s
    • production (time):11.5s -> 5.4s
    • size:916kb -> 747kb
    • refresh:-100ms

2018-03-29

  • 全局Loading
  • message提示

2018-03-28

  • 修复Right缺少route props

react-starter-kit's People

Watchers

 avatar  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.