JS/CSS压缩工具 YUI Compressor 2.4.7 发布
fmms 13年前
<div id="p_fullcontent" class="detail"> <p>YUI Compressor 是一个用来压缩 JS 和 CSS 文件的工具,采用Java开发。</p> <p>使用方法:</p> <p>//压缩JS<br /> java -jar yuicompressor-2.4.2.jar --type js --charset utf-8 -v src.js > packed.js<br /> //压缩CSS<br /> java -jar yuicompressor-2.4.2.jar --type css --charset utf-8 -v src.css > packed.css</p> <p><span style="font-weight:bold;">项目地址:<a href="/misc/goto?guid=4958199273934007361" target="_blank">http://yuilibrary.com/download/#yuicompressor</a></span><br /> <img title="yui-logo.png" border="0" alt="yui-logo.png" src="https://simg.open-open.com/show/ad71869870a4e2357884fa547325fa84.png" width="117" height="52" /><br /> <span style="font-weight:bold;">YUI Compressor 发布了 2.4.7 版本</span>,该版本包含对 CSS 最小化处理的一些问题,JS 压缩方面没做任何改变。</p> <h3>CSS minification</h3> <ul> <li>Fixed data URL handling, so that it large data URL values don’t crash or slow down CSS Compression.</li> <li>Fixed hex color value compression logic (#AABBCC -> #abc), so that the Compressor doesn’t inadvertently compress ID selectors (#AddressBook {…}) .</li> <li>All Java CSS Compressor fixes have been ported to the JS Compressor.</li> <li>All fixes are backed up by unit tests.</li> </ul> </div>