Skip to content

Use Prosecco to minify your javascript files within a GobbleJS workflow

Notifications You must be signed in to change notification settings

gobblejs/gobble-prosecco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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":
<[email protected]> 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.

About

Use Prosecco to minify your javascript files within a GobbleJS workflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published