/react-webpack-split-points

Simple React application combine with react-router asynchronous and webpack code-spliting features.

Primary LanguageJavaScript

Simple React Webpack Application

The experiment combine two super powerful features:

  • React-router: Asynchronously specify components on demand.
  • Webpack: chunking (code-split), which means it outputs multiple files (“chunks”) instead of one big one.
  • More...

Setup

  • First, clone this project:
> $ git clone THIS_REPO_URL 
  • Then install the dependencies:
> $ npm install
  • Run development server:
> $ npm start

Open the web browser to http://localhost:8888/, inspect the network logs and enjoy!