JavaScript parser / mangler / compressor / beautifier library for for Java

680 views
Skip to first unread message

yuanyan

unread,
Mar 30, 2011, 12:21:25 AM3/30/11
to UglifyJS
The original UglifyJS based on nodejs, but it is hard to do automated
integration with ant or maven, so i moved UglifyJS from node.js to
the java platform. it may help for you !


Usage:

java -jar uglifyjs-java.jar [ options... ] [ filename ]

the options consistent with the uglifyjs



yuanyan

unread,
Mar 30, 2011, 12:24:12 AM3/30/11
to UglifyJS
the UglifyJS-java link: https://github.com/yuanyan/UglifyJS-java

Alex Objelean

unread,
Mar 31, 2011, 3:29:16 AM3/31/11
to ugli...@googlegroups.com
Hi yuanyan,

the java support for uglifyJs is available since november 2010 in wro4j  (web resource optimizer for java). You have several options to use uglify js with wro4j:

On of the advantage of this tool is that you can easily integrate any kind of processors (not only uglify Js), like: googleClosure, packerJs, dojoShrinksafe, YuiJsMin, etc....

Regards,
Alex

poda Ofme

unread,
Jun 8, 2015, 7:56:10 AM6/8/15
to ugli...@googlegroups.com
Does this support source maps ?
 i dont see that here  



thanks
Me
Reply all
Reply to author
Forward
0 new messages