1.0.2 • Published 6 years ago

webinize v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

#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
    }
});