clean-css 0 votes

A well tested node.js CSS minifier.

Clean-css is a node.js library for minifying CSS files. It does the same job as YUI Compressor's CSS minifier but much faster thanks to speed of node.js V8 engine.

Sass 0 votes

Style with Attitude

Sass makes CSS fun again. Sass is an extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more. It’s translated to well-formatted, standard CSS using the command line tool or a web-framework plugin.

Sass has two syntaxes. The new main syntax (as of Sass 3) is known as “SCSS” (for “Sassy CSS”), and is a superset of CSS3’s syntax. This means that every valid CSS3 stylesheet is valid SCSS as well. SCSS files use the extension .scss.

The second, older syntax is known as the indented syntax (or just “Sass”). Inspired by Haml’s terseness, it’s intended for people who prefer conciseness over similarity to CSS. Instead of brackets and semicolons, it uses the indentation of lines to specify blocks. Although no longer the primary syntax, the indented syntax will continue to be supported. Files in the indented syntax use the extension .sass.

YUI Compressor 0 votes

YUI Compressor is an open source tool that supports the compression of both JavaScript and CSS files. The JavaScript compression removes comments and white-spaces as well as obfuscates local variables using the smallest possible variable name. CSS compression is done using a regular-expression-based CSS minifier.

CSSTidy 0 votes

CSSTidy is an opensource CSS parser and optimiser. It is available as executeable file (available for Windows, Linux and OSX) which can be controlled per command line and as PHP script (both with almost the same functionality).
In opposite to most other CSS parsers, no regular expressions are used and thus CSSTidy has full CSS2 support and a higher reliability.

Features (“a” stands for all selectors, “margin” stands for all properties):

  • colours like “black” or rgb(0,0,0) are converted to #000000 or rather #000 if possible. Some hex-codes are replaced by their colour names if they are shorter.
  • a{property:x;property:y;} becomes a{property:y;} (all duplicate properties are merged)
  • margin:1px 1px 1px 1px; becomes margin:1px;
  • margin:0px; becomes margin:0;
  • a{margin-top:10px; margin-bottom:10px; margin-left:10px; margin-right:10px;} becomes a{margin:10px;}
  • margin:010.0px; becomes margin:10px;
  • all unnecessary whitespace is removed, depending on the compression-level
  • all background-properties are merged
  • all comments are removed
  • the last semicolon in every block can be removed
  • missing semicolons are added, incorrect newlines in strings are fixed, missing units are added, bad colors (and color names) are fixed

Minify 1 vote

Minify is a PHP5 app that helps you follow several of Yahoo!'s Rules for High Performance Web Sites.

It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers.

The design is somewhat similar to Yahoo's Combo Handler Service, except that Minify can combine any local JS/CSS files you need for your page.

Features

  1. Combines and minifies multiple CSS or JavaScript files into a single download
  2. Uses an enhanced port of Douglas Crockford's JSMin library and custom classes to minify CSS and HTML
  3. Caches server-side (files/apc/memcache) to avoid doing unnecessary work
  4. Responds with an HTTP 304 (Not Modified) response when the browser has an up-to-date cache copy
  5. Most modules are lazy-loaded as needed (304 responses use minimal code)
  6. Automatically rewrites relative URIs in combined CSS files to point to valid locations
  7. With caching enabled, Minify is capable of handling hundreds of requests per second on a moderately powerful server.
  8. Content-Encoding: gzip, based on request headers. Caching allows it so serve gzipped files faster than Apache's mod_deflate option!
  9. Test cases for most components
  10. Easy integration of 3rd-party minifiers
  11. Separate utility classes for HTTP encoding and cache control

SmartOptimizer 0 votes

SmartOptimizer (previously named JSmart) is a PHP library that enhances your website performance by optimizing the front end using techniques such as minifying, compression, caching, concatenation and embedding. All the work is done on the fly on demand.
SmartOptimizer is open source and released under the terms of GPL (GNU General Public License).

SmartOptimizer Features

  • SmartOptimizer increases your website download speed by reducing the size of JavaScript and CSS files approximately up to 80% or even higher.
  • SmartOptimizer reduces count of http requests by concatenating JS/CSS files together.
  • It also reduces http requests by embedding CSS images and CSS imported files.
  • If your website has a large amount of JavaScript and CSS files, SmartOptimizer reduces your monthly bandwidth usage amazingly.
  • SmartOptimizer generates minified, compressed, combined and embedded files on the first request and caches them on the server and uses the cache on future requests.
  • It doesn't embed duplicated urls (i.e. css sprites) in css files for better performance.
  • It also knows to regenerate already cached files if the originals have been changed.
  • SmartOptimizer handles browsers that doesn't support gzip encoding and sends them non-gzipped content.
  • It also forces the browser to cache the files optionally forever or until they have not changed.
  • SmartOptimizer removes Etag headers. (for better performance on clustered servers).
  • It is very easy to install and usually there is no need to do any changes on your codes.

CSSO 0 votes

CSS optimizer

CSSO (CSS Optimizer) is a CSS minimizer unlike others. In addition to usual minification techniques it can perform structural optimization of CSS files, resulting in smaller file size compared to other minifiers.

CSS::Minifier 0 votes

Perl extension for minifying CSS

This module removes unnecessary whitespace from CSS. The primary requirement developing this module is to not break working stylesheets: if working CSS is in input then working CSS is output. The Mac/Internet Explorer comment hack will be minimized but not stripped and so will continue to function.

This module understands space, horizontal tab, new line, carriage return, and form feed characters to be whitespace. Any other characters that may be considered whitespace are not minimized. These other characters include paragraph separator and vertical tab.

For static CSS files, it is recommended that you minify during the build stage of web deployment. If you minify on-the-fly then it might be a good idea to cache the minified file. Minifying static files on-the-fly repeatedly is wasteful.

cssutils 0 votes

CSS Cascading Style Sheets parser and library for Python

A Python package to parse and build CSS Cascading Style Sheets. Currently a DOM only, no rendering options.

Stylus 0 votes

Expressive, dynamic, robust CSS

Robust, expressive, and feature-rich CSS superset.

Stylus is a revolutionary new language, providing an efficient, dynamic, and expressive way to generate CSS. Supporting both an indented syntax and regular CSS style.

less 0 votes

The dynamic stylesheet language.

LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions. LESS runs on both the client-side (IE 6+, Webkit, Firefox) and server-side, with Node.js.