Skip to content

Instantly share code, notes, and snippets.

@jackie
Created October 17, 2012 16:23
Show Gist options
  • Save jackie/3906506 to your computer and use it in GitHub Desktop.
Save jackie/3906506 to your computer and use it in GitHub Desktop.
Remove the cachebuster from a Compass-generated sprite
# config.rb
on_sprite_saved do |filename|
if File.exists?(filename)
FileUtils.mv filename, filename.gsub(%r{-s[a-z0-9]{10}\.png$}, '.png').gsub('images/../images/', '')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment