Skip to content

hchiam/learning-uglify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Learning UglifyJS

Just one of the things I'm learning. https://github.com/hchiam/learning

uglify-js: https://github.com/mishoo/UglifyJS2#uglifyjs-3

uglify-es for ES6: https://github.com/mishoo/UglifyJS2/tree/harmony#uglify-es

npm install uglify-es -g
uglifyjs input.js -o output.js -m -c

You can set this in your .bash_profile:

function ugly() { uglifyjs "$1" -o "$2" -m -c; }

And then you can type less in CLI:

ugly input.js output.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published