1.0.1 • Published 13 years ago

jake-uglify v1.0.1

Weekly downloads
9
License
-
Repository
github
Last release
13 years ago

This is a simple little helper to quickly create minify tasks for Jake using UglifyJS.

Usage

Here is a simple example Jakefile.js:

var minify = require('jake-uglify').minify;

task('default', ['bitcoinjs-min.js']);

desc('General-purpose build containing most features');
minify({'bitcoinjs-min.js': [
    'src/bitcoin.js',
    'src/wallet.js'
]});

Options

You can provide a second object with additional settings:

minify({'bitcoinjs-min.js': [
    'src/bitcoin.js',
    'src/wallet.js'
]},{
  header: "/* BitcoinJS v1.0.0 */"
});
  • header: Header that should be prepended to the minified result