gobble-prosecco

Use Prosecco to minify your javascript files within a GobbleJS workflow


Keywords
prosecco, gobble, minify, javascript, transpilation, compilation, esnext, es2015, es2017, es6, es7
License
Beerware
Install
npm install gobble-prosecco@0.1.2

Documentation

gobble-prosecco

Use Prosecco to minify your javascript files within a GobbleJS workflow.

Installation

I assume you already know the basics of Gobble.

npm i -D gobble-prosecco

Usage

In your gobblefile, run the prosecco gobble transform, like so:

var gobble = require( 'gobble' );
module.exports = gobble( 'src' )
    .transform( 'prosecco' );

By default, gobble-prosecco will minify only files with a .js extension, and output files with a .min.js extension. Override this with the accept and ext options:

var gobble = require( 'gobble' );
module.exports = gobble( 'src' )
    .transform( 'prosecco', {
        accept: ['.js', '.jsx', '.jsnext'],
        ext: ['.small.js']
        // Any other Prosecco options go here
    } );

License

"THE BEER-WARE LICENSE":
<ivan@sanchezortega.es> wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.