@rill/webpack
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!