webpack Hot Module Replacement

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

webpack-hot-middleware

Use with webpack-dev-middleware, by adding webpack-hot-middleware/client to entry.

Config

Add configs as query string to the path. Example:

webpack-hot-middleware/client?path=/__what&timeout=2000&overlay=false
OptionDescription
pathThe path which the middleware is serving the event stream on
timeoutThe time to wait after a disconnection before attempting to reconnect
overlaySet to false to disable the DOM-based client-side overlay.
reloadSet to true to auto-reload the page when webpack gets stuck.
noInfoSet to true to disable informational console logging.
quietSet to true to disable all console logging.
dynamicPublicPathSet to true to use webpack publicPath as prefix of path. (We can set __webpack_public_path__ dynamically at runtime in the entry point, see note of output.publicPath)


Got any webpack Question?