hapi-webpack-hot-middleware
v2.0.0
Published
hapi plugin to use webpack-hot-middleware
Downloads
22
Readme
hapi-webpack-hot-middleware
hapi plugin to use webpack-hot-middleware.
Breaking change in 2.0
Upgraded to use Webpack 2.
Installation
$ npm install hapi-webpack-hot-middleware --save-dev
Usage
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.
License
MIT