Skip to content

Instantly share code, notes, and snippets.

@eyecatchup
Created May 13, 2017 23:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyecatchup/4378b60999b1b815ead65cda4dc71bdc to your computer and use it in GitHub Desktop.
Save eyecatchup/4378b60999b1b815ead65cda4dc71bdc to your computer and use it in GitHub Desktop.

CSS Compression


Resources to help comparing & evaluating different CSS compressing techniques in general, and specifically different open-source CSS compressor implementations, with a clear focus on, but not limited to, JS/NodeJS based tools.

(CSS) Compression Techniques

"Long, fragile lists of self-contradictory rules"
Douglas Crockford on CSS

CSS Compressors

Go

Packages

Java

Packages

JavaScript / NodeJS

Packages

Dont forget:

  • AjaxMin from the ASP.NET AJAX Control Toolkit, maintained by DevExpress
Automated Benchmarks / Tests
Related tools (linter, fixer etc.)
Known Issues

PHP

Packages
  • cssmin
    • Direct PHP port of YUICompressor's CSS compressor implementation in Java
    • Sources on Github
    • Docs: on Github
  • CSSTidy (>= v1.4)
    • CSS parser, optimiser and fixer
    • Sources on Github
  • CSSTidy (<= v1.3)
    • Cross-plattform CSS parser, optimiser and fixer (written in C++) and also available as a script for webpages (written in PHP)
    • C++ Sources & Binaries on Sourceforge
    • PHP Sources on Sourceforge
    • Project website on Sourceforge

Python

Packages

Ruby

Packages
  • cssmin.rb

Helper-scripts / Tools / Experiments
Online-Tools

Specs / Standards

Blogposts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment