class CsscompressCompressor
Constants
- VERSION
Public Class Methods
cache_key()
click to toggle source
# File lib/csscompress/sprockets.rb, line 4 def self.cache_key "#{name}:#{Csscompress::VERSION}:#{VERSION}".freeze end
call(input)
click to toggle source
# File lib/csscompress/sprockets.rb, line 8 def self.call(input) puts "[#{name}] Compressing…" Tempfile.create([input[:name], ".css"]) do |file| file << input[:data] file.close {data: Csscompress.minify(file.path)} end end