uglify-stream
Transform stream for UglifyJS
Example
var fs = ;var uglify = ; fs ;
API
uglify-
Creates a duplex stream that will compress all JS code piped into it with UglifyJS. UglifyJS is run in a separate process when using this module, which means that it will not block the calling process when compressing, unlike using Uglify directly from Node.
Options
compress
: Set tofalse
to disable compressionmangle
: Set tofalse
to disable name mangling
Example: compress browserify bundle
Using a transform stream makes it very simple to compress the bundle output from Browserify:
var browserify = ;var uglify = ;var bl = ; var b = ; { console;}