Skip to content

laggingreflex/koa-es-modules-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 from
  • cacheDir [string](default:<root>/.webpack-cache) Dir to put generated bundles
  • watch [boolean](default:false) Watches requested modules for subsequent file-changes
  • webpackConfig [object] Custom webpackConfig to use

About

Koa middleware to serve ES6 Modules using Webpack bundler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published