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 (1,555,006
Reactjs (72,801
Webpack (9,749
React Router (3,280
Webpack2 (838
Offline (803
Service Worker (776
Hmr (222
Related Projects