gobble-uglifyjs
Minify JavaScript files with gobble and uglifyjs2.
Installation
First, you need to have gobble installed - see the gobble readme for details. Then,
npm i -D gobble-uglifyjs
Usage
gobblefile.js
var gobble = ;moduleexports = ;
If you want the output to have a .min.js
extension, add an options
argument:
var gobble = ;moduleexports = ;
To keep the non-minifed version alongside the result of the transformation:
var gobble = src = ;moduleexports = src src;
By default, sourcemaps are created. To disable, pass a sourceMap: false
option.
License
MIT. Copyright 2014-15 Rich Harris