webpackHot Module Replacement


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)