Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TurboUgly

TurboUgly

TurboUgly is a ridiculously fast CSS minifier. It collapses whitespace, removes comments and strips stuff that it thinks isn't strictly necessary. It's less lenient towards creative CSS hacks than other minifiers as it doesn't actually parse CSS, but makes up for it by being a good deal more speedy.

Call turbougly with the file to minify as the first argument. It will spit the compressed CSS to stdout.

Features

  • Zealously removes whitespace
  • Strips all comments
  • Removes empty declarations
  • Compresses rgb functions (rgb(255, 0, 0) -> #ff0000)
  • Compresses hex colors (#ff0000 -> #f00)
  • Removes unneeded zero's
  • Collapses font-weight values (bold -> 700)
  • Fast and low on memory use
  • Memory leak-free
  • Written in C99

Installing

To build TurboUgly, just use make. There is no ./configure or similar. To install, run make install as root or just copy the turbougly binary to your $PATH.

Bugs

TurboUgly doesn't really parse your CSS files - it takes a quick glance, then strips it. It may choke on perfectly valid CSS, strip stuff that shouldn't be stripped or keep stuff that it shouldn't.

Please report all bugs to the GitHub issue tracker. Contributions, fixes, patches and ideas are also more than welcome.

Build status

Build Status

License

TurboUgly is distributed under the MIT license.

About

A ridiculously fast CSS minifier

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors