First, clone this gist somewhere and cd into 61941f90852444eb5a11
61941f90852444eb5a11 (master)‣ npm install
npm WARN package.json my-application@ No description
npm WARN package.json my-application@ No repository field.
npm WARN package.json my-application@ No README data
[email protected] node_modules/uglifyjs
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected])
61941f90852444eb5a11 (master)‣ npm run ugly
> my-application@ ugly /Users/tmpvar/work/js/tmp/61941f90852444eb5a11
> uglifyjs --help
/Users/tmpvar/work/js/tmp/61941f90852444eb5a11/node_modules/.bin/uglifyjs input1.js [input2.js ...] [options]
Use a single dash to read input from the standard input.
NOTE: by default there is no mangling/compression.
Without [options] it will simply parse input files and dump the AST
with whitespace and comments discarded. To achieve compression and