| |||||
Initially developed for NodeJS, it works on any JavaScript platform supporting the CommonJS module system.
UglifyJS tries its best to achieve great compression while leaving the semantics of the code intact.
In general, if the code logic is broken by UglifyJS then it’s a bug in UglifyJS, not the original code.
Here are some key features of "UglifyJS":
· Shorten variable names.
· Ability to re-generate JavaScript code from the AST.
· Various small optimizations that may lead to faster code but certainly lead to smaller code.
· Remove block brackets.
· Join consecutive var declarations.
· Resolve simple constant expressions.
· Optimizations for IF statements.
· Consecutive statements in blocks are merged into a sequence.
· Remove some unreachable code and warn about it.
Requirements:
· JavaScript enabled on client side

Via: UglifyJS 1.3.4






0 Comment:
Post a Comment