
Name | rcssmin |
Version | 1.1.1 |
Category | development |
Description | rCSSmin is a CSS minifier written in Python |
Maintainer | al.bobylev@gmail.com |
License | Apache |
Website | opensource.perlig.de/rcssmin |
Sizes | |
Depends on | ![]() |
Download package |
|
Show receipt | |
Show files list | |
Show cooking log | |
Install package Remove package |
Description
RCSSmin is a CSS minifier written in Python. The minifier is based on the semantics of the YUI compressor, which itself is based on the rule list by Isaac Schlueter. This module is a re-implementation aiming for speed instead of maximum compression, so it can be used at runtime (rather than during a preprocessing step). RCSSmin does syntactical compression only (removing spaces, comments and possibly semicolons). It does not provide semantic compression (like removing empty blocks, collapsing redundant properties etc). It does, however, support various CSS hacks (by keeping them working as intended). Here's a feature list:
rcssmin.c is a reimplementation of rcssmin.py in C and improves runtime up to factor 100 or so (depending on the input). docs/BENCHMARKS in the source distribution contains the details. The module additionally provides a "streamy" interface: $ python -mrcssmin It takes two options: -b Keep bang-comments (Comments starting with an exclamation mark) |