hapi-webpack icon indicating copy to clipboard operation
hapi-webpack copied to clipboard

A Hapi plugin for building and serving Webpack bundles.

hapi-webpack

Build Status

A Hapi plugin for building and serving Webpack bundles.

Installation

npm install hapi-webpack

Usage

var Webpack = require('hapi-webpack')

server.register({
  register: Webpack,
  options: options,
}, {
  routes: {
    prefix: '/build',
  },
})

Webpack bundles will be served from /build/<output_filename>.js.

Options

See the webpack configuration documentation for details.

Tests

$ npm test

License

See LICENSE.