koa2-webpack
1.1.0 • Public • Published koa2 middleware for webpack (HMR)
Install
$ npm install --save koa@next
$ npm install --save koa2-webpack
Usage
const Koa = require('koa')
const app = new Koa()
const webpackHRM = require('koa2-webpack')
app.use(webpackHRM({
config: require('/* ... webpack.config.js */'),
dev:{
},
hot:{
}
}))
Examples
$ git clone https://github.com/cjg125/koa2-webpack.git demo
$ cd demo
$ npm install
$ npm start
Config Options
webpack-dev-middleware
webpack-hot-middleware
Package Sidebar
Install
Weekly Downloads