jake-uglify

1.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    5
  • 1.0.0
    1

Package Sidebar

Install

npm i jake-uglify

Weekly Downloads

6

Version

1.0.1

License

none

Last publish

Collaborators

  • bitcoinjs
  • justmoon