| Module | CSSMin |
| In: |
lib/cssmin.rb
|
Minifies CSS using a fast, safe routine adapted from Julien Lecomte‘s YUI Compressor, which was in turn adapted from Isaac Schlueter‘s cssmin PHP script.
| Author: | Ryan Grove (ryan@wonko.com) |
| Version: | 1.0.3 (2013-03-14) |
| Copyright: | Copyright (c) 2008 Ryan Grove. All rights reserved. |
| License: | New BSD License (opensource.org/licenses/bsd-license.php) |
| Website: | github.com/rgrove/cssmin/ |
require 'rubygems'
require 'cssmin'
File.open('example.css', 'r') {|file| puts CSSMin.minify(file) }