koa-es6ify
v0.1.1
Published
ES6ify middleware for koa
Downloads
6
Maintainers
Readme
koa-es6ify
ES6ify middleware for koa.
Install
$ npm install koa-es6ify
Usage
var koa = require('koa');
var app = koa();
app.use(es6ify({
entry: 'client/app',
path: '/assets/bundle.js'
}));
API
es6ify(opts)
Create koa
middleware
opts.entry
Browserify entry pointopts.path
Server bundle at this locationopts.add
Optional add these modules to the bundle (browserify.add
)opts.transform
Optional apply these transforms on the bundle (browserify.transform
)opts.options
Optional bundle options (browserify.bundle(options)
)
License
MIT