@rill/webpack

1.3.0 • Public • Published

Rill
@rill/webpack
API stability Standard NPM version Downloads Gitter Chat

Webpack dev and hot reload middleware for Rill. (Automatically removed in the browser)

Installation

npm install @rill/webpack

Example

const app = require('rill')()
const devMiddleware = require('@rill/webpack')
const hotMiddleware = require('@rill/webpack/hot?overlay=false&timeout=1000') // pass in client side options via query string.

// Setup the dev middleware (provide config path relative to project root).
app.use(devMiddleware('webpack.config.js', {
  quiet: true
}))

// Setup the hot middleware (provide config path relative to project root).
app.use(hotMiddleware('webpack.config.js', {
  heartbeat: 2000
}))

Contributions

  • Use npm test to run tests.

Please feel free to create a PR!

Package Sidebar

Install

npm i @rill/webpack

Weekly Downloads

1

Version

1.3.0

License

MIT

Last publish

Collaborators

  • dylanpiercey