0.2.1 • Published 8 years ago
koa-es-modules-webpack v0.2.1
koa-es-modules-webpack
Koa middleware to serve ES6 Modules of requested js files on-the-fly using Webpack bundler
Install
npm i koa-es-modules-webpack
Usage
Checkout the example
API
app.use(esWebpack(opts))
root
[string](required)
Root directly to serve and resolve JS assets fromcacheDir
[string](default:<root>/.webpack-cache)
Dir to put generated bundleswatch
[boolean](default:false)
Watches requested modules for subsequent file-changeswebpackConfig
[object]
Custom webpackConfig to use