Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
js update to webpack 2 Feb 8, 2017
www Initial commit 😺 Nov 6, 2015
README.md
package.json ⬆️ update to webpack 3 Jan 12, 2018
server.js update to webpack 2 Feb 8, 2017
webpack.config.js update to webpack 2 Feb 8, 2017

README.md

HMR w/ webpack-hot-middleware and express

This project is a simple example of how to use webpack-hot-middleware to enable HMR on your express server.

Setup

npm install

Running

npm start

Open http://localhost:3000.

Discussion

The npm start command runs: node server.js. This starts the express server which is configured to use webpack-hot-middleware.

This is ideal when you are already using or planning to use express.