A Hapi plugin for building and serving Webpack bundles.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE.md
README.md
package.json

README.md

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.