{"library":"webpack-hot-middleware","type":"library","category":null,"description":"Webpack Hot Middleware provides hot module replacement (HMR) capabilities for Webpack applications by integrating with an existing server, such as Express, and `webpack-dev-middleware`. This library is a direct alternative to `webpack-dev-server` for scenarios where developers need more control over their server setup, particularly for integrating HMR into custom backend environments. It focuses exclusively on the client-server communication mechanism for HMR updates, subscribing to server-side changes and executing them using Webpack's native HMR API. The current stable version is 2.26.1, released in February 2024, indicating a steady but infrequent release cadence primarily for bug fixes and compatibility updates. It does not handle the actual component-level hot reloading, leaving that to other libraries like React Hot Loader.","language":"javascript","status":"active","version":"2.26.1","tags":["javascript","webpack","hmr","hot","module","reloading","hot-reloading","middleware","express"],"last_verified":"Wed May 27","install":[{"cmd":"npm install webpack-hot-middleware","imports":["const webpackHotMiddleware = require('webpack-hot-middleware');","entry: { main: ['webpack-hot-middleware/client', './src/main.js'] }","new webpack.HotModuleReplacementPlugin()"]},{"cmd":"yarn add webpack-hot-middleware","imports":[]},{"cmd":"pnpm add webpack-hot-middleware","imports":[]}],"homepage":null,"github":"https://github.com/webpack-contrib/webpack-hot-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/webpack-hot-middleware","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/webpack-hot-middleware/compatibility"}}