node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey ยป


This sample project is a proof-of-concept for isomorphic (universal) Webpack rendering using React.


  • React
  • React-router
  • Redux as Flux
  • Isomorphic (universal) rendering
  • Webpack
  • Development mode: hot reload for React components, hot reload for Redux reducers

Quick Start

  • npm install
  • npm run dev
  • wait for it to finish (it will say "Now go to" in the end)
  • go to http://localhost:3000
  • interact with the development version of the web application
  • Ctrl + C
  • npm run production
  • wait a bit for Webpack to finish the build (green stats will appear in the terminal, plus some node.js server running commands)
  • go to http://localhost:3000
  • interact with the production version of the web application


In summer 2015 I wrote webpack-isomorphic-tools to make isomorphic (universal) React rendering work on server-side when the project was built with Webpack.

The goal was met and many people started using it to implement isomorphic (universal) rendering in their apps.

Still it lacked some funky Webpack features like variuos Webpack plugins and other edge cases.

So I did some research on Webpack builds for Node.js and came up with a proof-of-concept solution which I now decided to publish as a library called universal-webpack.


Seems to work.

If you have any issues running this code you can report them the issue tracker.