Skip to content

Instantly share code, notes, and snippets.

@rogeruiz
Forked from chriseppstein/compass_config.rb
Created April 8, 2012 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogeruiz/2339721 to your computer and use it in GitHub Desktop.
Save rogeruiz/2339721 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment