hapi plugin to use webpack-hot-middleware.
Upgraded to use Webpack 2.
$ npm install hapi-webpack-hot-middleware --save-dev
Require this plugin along with hapi-webpack-dev-middleware and register them normally:
const HapiWebpackDevMiddleware = require('hapi-webpack-dev-middleware');
const HapiWebpackHotMiddleware = require('hapi-webpack-hot-middleware');
server.register(
{
register: HapiWebpackDevMiddleware,
options: {...}
},
{
register: HapiWebpackHotMiddleware
}
);
See the documentation for webpack-hot-middleware for configuration options.
MIT