georginzhang / react-webpack-boilerplate

A full-featured Webpack setup with hot-reload

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-webpack-boilerplate

A SPA boilerplate with React, built with love.

I think a fantastic boilerplate is good for us to learn a library such like Vue and React. Since Vue has vue-cli, and in my personal opinion, the so-called full-featured boilerplates with React are mostly suck. So I decided to build one, referenced by vue-cli. Hope it can help you learn React with no extra burden. If you are familiar with vue-cli, this boilerplate may be the best for you.

What's included

  • React 15.3.1
  • JSX
  • ES6
  • Webpack
  • Express the dev-server.
  • Hot-Reload
  • Proxy I think most of the boilerplates drop this important feature.
  • Global-Variable

Usage

In the very beginning you need to clone this project in your local environment.

# install all this dependencies.
npm install

# development, default port: 3000
npm run dev

# production
npm run build

Docs

You can check the doc of vue-webpack. Or ZH-doc

TODO

  • testing
  • eslint
  • multiple css pre-processors
  • cli

About

A full-featured Webpack setup with hot-reload

License:MIT License


Languages

Language:JavaScript 72.5%Language:CSS 26.1%Language:HTML 1.4%