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
- Host: GitHub
- URL: https://github.com/smbeiragh/isomorphic-webpack
- Owner: smbeiragh
- Created: 2018-09-21T13:49:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T21:42:39.000Z (about 3 years ago)
- Last Synced: 2025-03-08T20:53:14.837Z (11 months ago)
- Topics: example, hmr, hot-module-replacement, hot-reload, isomorphic, javascript, react, webpack
- Language: JavaScript
- Size: 783 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
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