Sha256: 5c17efc22fe1ad05a6ceda35cb2d0eff0134d6d58287a993c4d63d768fd71932
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
#!/usr/bin/env ruby require 'csso-rails' def help puts <<-HLP csso- CSS Optimizer (ruby bindings by vasfed) Usage: $ ruby_csso < style.css - read stdin and output to stdout $ ruby_csso file1.css [file2.css [...]] - read all files and output to stdout (concatenating, no optimization between files yet) --help - print this help --maniac - enable maniac mode (optimize file multiple times until optimization stops to give any results) HLP end maniac = ARGV.delete('--maniac') && true || false if ($stdin.tty? && ARGV.empty?) || ARGV.delete('-h') || ARGV.delete('--help') help else # Well, lets read those files css = ARGF.read puts Csso.optimize(css, maniac) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
csso-rails-0.0.1 | bin/ruby_csso |