Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (18 loc) · 551 Bytes

README.md

File metadata and controls

31 lines (18 loc) · 551 Bytes

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.