webinize

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i webinize

Weekly Downloads

2

Version

1.0.2

License

ISC

Last publish

Collaborators

  • ameola01