/isomorphic-webpack

A simple example of Isomorphic bundling using webpack

Primary LanguageJavaScript

Isomorphic Webpack

A simple example of Isomorphic bundling using webpack

  • Webpack 4
  • HMR & hot reload on both server and client
  • React 16
  • Babel 7

Usage

There are two examples,

  1. using webpack only
  2. using webpack-server-middleware

Using Webpack only

Switch example directory & install dependencies.

cd pure-webpack
yarn

Create server bundle and start watching for changes

yarn run watch

Start server

yarn start:dev

View Example app on localhost:3000

Using webpack-hot-server-middleware

Switch example directory & install dependencies.

cd hot-server-middleware
yarn

Start server

yarn start:dev

View Example app on localhost:3000