koa-modularize
v3.6.9
Published
koa middleware for transforming commonjs file into browser module format
Downloads
373
Readme
koa-modularize
koa middleware for transforming node_modules js file into browser module format and imported css path to absolute node_modules path
Usage
var koa = require('koa');
var modularize = require('koa-modularize');
app.use(modularize());
app.listen(8000);
Example
npm start
open http://localhost:9999/test/test.html
API
GeneratorFunction modularize(dir:String, option: Object)
dir
file directory code belongs in. defaults to process.cwd()