Awesome Open Source
Awesome Open Source

React Router Dynamic Route Loading w/ Webpack 2 Chunks

Webpack 2 automatically splits routes in chunks (small bundles) and loads them on demand.

See the demo

Contains

Features

  • [x] Tree shaking
  • [x] Code Splitting
  • [x] Hot Module Replacement
  • [x] ES6 Source debugging in Chrome with sourcemaps
  • [x] React Router
  • [x] Yarn-friendly

##System Requirements Before installing the dependencies, make sure your system has the correct Node and Npm versions, otherwise you will get errors.

  • Node 6.x.x
  • Npm 3.x.x

Setup

$ npm install

Running

$ npm start

Build

$ npm run build

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (70,419
react (5,475
webpack (1,158
react-router (210
offline (164
webpack2 (109
service-worker (91
hmr (46
chunk (18
tree-shaking (18