kitchensink
Version:
Dispatch's awesome components and style guide
27 lines (21 loc) • 510 B
Markdown
# Webpack Hot Middleware Example
* Install deps
```sh
npm install
```
* Start server
```sh
npm start
```
* Open page in browser http://localhost:1616
* Open the developer console
* Edit `client.js` & save
* Watch the page reload
* Also try making a syntax error in `client.js`.
## Multiple Entry Points Example
There is also an example for multiple entry points in webpack.
```sh
npm run start:multientry
```
* Open page in browser http://localhost:1616/multientry
* Edit `client.js` or `extra.js` & save