Official Website: Ghost (NodeJS has been deployed) 1. Download the compressed package and open it. 2. Open Terminal3. run the sudo-s command to obtain the root permission. 4. mkdir/usr/local/li...
Https://github.com/mishoo/UglifyJS/
This section mainly introduces commands and APIs and downloads related versions.
For MAC deployment: (NodeJS has been deployed)
1. Download the compressed package and open it.
2. Enable Terminal
3. Run sudo-s to obtain the root permission.
4. Create a directory in mkdir/usr/local/lib/node/uglify-js
5. cp-a */usr/local/lib/node/uglify-js copy the file to this directory.
6. cp bin/uglifyis/usr/local/bin/uglifyjs
Put the executable file in the Directory included in $ Path so that it can be executed anywhere.
Common commands:
Compress JavaScript
Uglifyjs example. js> example. min. js
2. Beautify JavaScript
Uglifyjs-B example. min. js> example. js
From JerryVon's column