How sites build zip files online for download?
I want to know that how many sites like jqueryui, etc. build online zip packages for download. And how it can be done in开发者_如何学C asp.net ?
To compress/minify javascript files you could use the YUI compressor which has a .NET port. The Google Closure Compiler is also worth checking. You could use it online or compile its JAR package to .NET assembly using ikvmc. To create a zip file you may take a look at SharpZipLib.
I take the compress as minified, and not as encrypted and compress on string.
As alternative I like to propose the Microsoft Ajax Minified 4.0, that I use it with sussex on very complicate and big javascript files (including jQuery) for real time compress them/minified them...
http://aspnet.codeplex.com/releases/view/40584
and the next to zip it, I suggest SharpZipLib but also the DotNetZip
http://dotnetzip.codeplex.com/
精彩评论