CSS 压缩工具,rCSSmin 1.0.1 发布

jopen 12年前
   <p><a href="/misc/goto?guid=4958342610663180692" target="_blank">RCSSmin </a>是一个用 Python 开发的 CSS 压缩工具,基于 YUI compressor 的语义实现。提升了压缩的速度和比例。</p>    <ul class="simple">     <li>Strings are kept, except that escaped newlines are stripped</li>     <li>Space/Comments before the very end or before various characters are stripped: <tt class="docutils literal"><span class="pre">:{});=>+],!</span></tt> (The colon (<tt class="docutils literal"><span class="pre">:</span></tt>) is a special case, a single space is kept if it’s outside a ruleset.)</li>     <li>Space/Comments at the very beginning or after various characters are stripped: <tt class="docutils literal"><span class="pre">{}(=:>+[,!</span></tt></li>     <li>Optional space after unicode escapes is kept, resp. replaced by a simple space</li>     <li>whitespaces inside <tt class="docutils literal"><span class="pre">url()</span></tt> definitions are stripped</li>     <li>Comments starting with an exclamation mark (<tt class="docutils literal"><span class="pre">!</span></tt>) can be kept optionally.</li>     <li>All other comments and/or whitespace characters are replaced by a single space.</li>     <li>Multiple consecutive semicolons are reduced to one</li>     <li>The last semicolon within a ruleset is stripped</li>     <li>CSS Hacks supported:     <ul>       <li>IE7 hack (<tt class="docutils literal"><span class="pre">>/**/</span></tt>)</li>       <li>Mac-IE5 hack (<tt class="docutils literal"><span class="pre">/*\*/.../**/</span></tt>)</li>       <li>The boxmodelhack is supported naturally because it relies on valid CSS2 strings</li>       <li>Between <tt class="docutils literal"><span class="pre">:first-line</span></tt> and the following comma or curly brace a space is inserted. (apparently it’s needed for IE6)</li>       <li>Same for <tt class="docutils literal"><span class="pre">:first-letter</span></tt></li>      </ul> </li>    </ul>    <p>rCSSmin 1.0.1 发布了,该版本主要是增加对 Python 3.3 的支持。</p>    <div id="current-stable-version" class="section">     <h4>Current Stable Version</h4>     <ul class="simple">      <li><a class="reference external" href="/misc/goto?guid=4958342611460869154">rcssmin-1.0.1.tar.lzma</a></li>      <li><a class="reference external" href="/misc/goto?guid=4958342612253690081">rcssmin-1.0.1.tar.bz2</a></li>      <li><a class="reference external" href="/misc/goto?guid=4958342613052979474">rcssmin-1.0.1.tar.gz</a></li>      <li><a class="reference external" href="/misc/goto?guid=4958342613847614528">rcssmin-1.0.1.zip</a></li>      <li><a class="reference external" href="/misc/goto?guid=4958342614642008077">rcssmin-1.0.1.digests</a></li>     </ul>    </div>