Created
          October 17, 2012 16:23 
        
      - 
      
- 
        Save jackie/3906506 to your computer and use it in GitHub Desktop. 
    Remove the cachebuster from a Compass-generated sprite
  
        
  
    
      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
    
  
  
    
  | # 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