Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

obfuscate: Make file-min.js?

For example, when I download Jquery, I see there is always 2 file: jquery.js and jquery-min.js.

How could they create jQuery-min.js -> in this file, it is not only compressed but also obfuscated. Which tool is best to do this?

I am working with Visual Studio 2010 Ultimate, would it be also possible as well?

Thanks in advance!

like image 782
olidev Avatar asked Sep 01 '10 11:09

olidev


1 Answers

You can use this: http://dean.edwards.name/packer/ pretty cool... and I believe jQuery is compressed using that. There are .NET, PHP and other versions HERE.

For Visual Studio I use this: http://yuicustomtool.codeplex.com/.

Checkout this too for CSS: https://csscompressor.net/

UPDATE: Recently I came across THIS. Its an Online YUI Compressor. Its useful if you are not able to run YUI Compressor EXE, or you haven't wrote your JS to be minification friendly (it adds ; by itself to the end of the object's definition for example).

like image 134
Cipi Avatar answered Oct 31 '22 11:10

Cipi