TBCompressor - JS和CSS压缩工具
作者:darkwood 日期:2009-01-16
YUI Compressor 感谢yahoo的奉献,这是淘宝进行的封装,干嘛用?压缩js和css啊,目前连jQury都是这个压缩的:
The YUI Compressor is a JavaScript compressor which, in addition to removing comments and white-spaces, obfuscates local variables using the smallest possible variable name. This obfuscation is safe, even when using constructs such as ‘eval’ or ‘with’ (although the compression is not optimal is those cases) Compared to jsmin, the average savings is around 20%. The YUI Compressor is also able to safely compress CSS files. The decision on which compressor is being used is made on the file extension (js or css)
安装说明
- 安装请点击install.cmd
- 卸载请点击uninstall.cmd
- 如果以前安装过2.3.5之前的版本, 请点击update.cmd升级
测试使用
- 在test.source.js上右键,执行菜单“压缩JavaScript”,会生成test.js文件。如果再对test.js文件执行一次压缩,会生成test-min.js文件
- CSS同1
下载:TBCompressor_v2.4.zip (1.53 MB)







