1.3.0 • Published 8 years ago
@rill/webpack v1.3.0
Webpack dev and hot reload middleware for Rill. (Automatically removed in the browser)
Installation
npm install @rill/webpackExample
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 testto run tests.
Please feel free to create a PR!