2.0.0 • Published 8 years ago

hapi-webpack-hot-middleware v2.0.0

Weekly downloads
160
License
MIT
Repository
github
Last release
8 years ago

hapi-webpack-hot-middleware

hapi plugin to use webpack-hot-middleware.

Dependency Status devDependency Status

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