This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if environment == :production | |
on_stylesheet_saved do |file| | |
# pretty logging output when making a gzipp'ed file | |
gz_file = Pathname.new("#{file}.gz").relative_path_from(Pathname.new(project_path)) | |
Compass::Logger.new.record(:create, gz_file) | |
# This generates a file of the same name but ending in .gz | |
`gzip -f #{file}` | |
end | |
end |