Sha256: 511469c1eeb76f9f72a5f49f45da62039df7517b19fe9fae1726a72af8f5b905

Contents?: true

Size: 465 Bytes

Versions: 6

Compression:

Stored size: 465 Bytes

Contents

require 'rubygems'
require 'rake'
require 'yui/compressor'

namespace :compress do
  
  desc "Compress JS"
  task :js do
    Compressible.js(
      ENV["JS"].split(/,?\s+/),
      :to => ENV["TO"],
      :munge => ENV["MUNGE"].blank? || true : ENV["MUNGE"]
    )
  end
  
  desc "Compress CSS"
  task :css do
    Compressible.css(
      ENV["CSS"].split(/,?\s+/),
      :to => ENV["TO"]
    )
  end
  
  desc "Compress CSS and JS"
  task :all => [:js, :css]
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
compressible-0.0.2.6 lib/compressible.rake
compressible-0.0.2.4 lib/compressible.rake
compressible-0.0.2.3 lib/compressible.rake
compressible-0.0.2.2 lib/compressible.rake
compressible-0.0.2.1 lib/compressible.rake
compressible-0.0.2 lib/compressible.rake