Plugin to Minify/Obfuscate/Uglify Javascript

630 views
Skip to first unread message

cameron.m...@gmail.com

unread,
May 14, 2014, 3:59:11 PM5/14/14
to jenkins...@googlegroups.com
Hi All,

Is there a Jenkins plugin (doesn't necessarily have to be a plugin) or an efficient way to minify javascript? I would like to just have a plug-in of some kind to just minify all javascript in the workspace that has been checked out from SVN. I haven't been able to find anything that is geared specifically to do that with Jenkins. I've been looking at Grunt, but it looks like I'd be adding a lot of overhead to my solution to only use a very small portion of what Grunt is designed for. Has anyone found any useful plugins for this or had any luck with Jenkins and Grunt or another 3rd party program for this?

cameron.m...@gmail.com

unread,
May 14, 2014, 6:51:11 PM5/14/14
to jenkins...@googlegroups.com
It might be worth me noting that I am running on a Mac (with Mavericks). I noticed that there is a NodeJS Jenkins plug-in. Has anyone had any success with this plugin?

Richard Bywater

unread,
May 14, 2014, 6:57:58 PM5/14/14
to jenkins...@googlegroups.com
Personally I think thats better running as a build step. e.g. using YUICompressor or another tool. 

Richard.


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

cameron.m...@gmail.com

unread,
May 14, 2014, 7:03:42 PM5/14/14
to jenkins...@googlegroups.com
Thanks for the reply, Richard. I will look into YUICompressor.

Richard Bywater

unread,
May 14, 2014, 7:08:28 PM5/14/14
to jenkins...@googlegroups.com
Note thats the one I mention because its the last command-line one I used - there's probably some other possibly more options out there if YUICompressor doesn't tick the boxes for you :)

Richard.

Andrew Kujtan

unread,
May 15, 2014, 10:23:42 AM5/15/14
to jenkins...@googlegroups.com

I think YUICompressor is no longer maintained. Better to use Uglifyjs or similar.

 

But as Richard noted, this is the job of a build step, not a Jenkins plugin.

 

-Andrew

Reply all
Reply to author
Forward
0 new messages