webinize
v1.0.2
Published
<br> an oppinionated wrapper for babel and node-minify. <br/><br/> It accepts a single object as it's argument, with the following properties: <hr/>
Downloads
3
Readme
#Webinize an oppinionated wrapper for babel and node-minify. It accepts a single object as it's argument, with the following properties:
- src: (your source file)
- dev: ( development bundle destination - with working source map)
- min: (production bundle destination - minified and dead code removed)
- done: (callback)
##API example usage:
const webinize = require('webinize');
webinize({
src: '/sadf/asdf/asd/fas/dadg/foo.js'
dev: '/sadf/asdf/asd/fas/dadg/foo.bundle.js'
//min is optional, and signifigantly adds to compile time.
min: '/sadf/asdf/asd/fas/dadg/foo.bundle.min.js'
done: () => {
// do stuff here
}
});