An open API service indexing awesome lists of open source software.

https://github.com/smbeiragh/isomorphic-webpack

A simple example of Isomorphic bundling using webpack
https://github.com/smbeiragh/isomorphic-webpack

example hmr hot-module-replacement hot-reload isomorphic javascript react webpack

Last synced: about 1 month ago
JSON representation

A simple example of Isomorphic bundling using webpack

Awesome Lists containing this project

README

          

# 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.

```sh
cd pure-webpack
yarn
```

Create server bundle and start watching for changes
```sh
yarn run watch
```

Start server
```sh
yarn start:dev
```

View Example app on localhost:3000

### Using webpack-hot-server-middleware

Switch example directory & install dependencies.

```sh
cd hot-server-middleware
yarn
```

Start server
```sh
yarn start:dev
```

View Example app on localhost:3000