hapi-webpack-hot-middleware

2.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i hapi-webpack-hot-middleware

Weekly Downloads

1

Version

2.0.0

License

MIT

Last publish

Collaborators

  • prashaantt