Skip to content

Commit

Permalink
Don't remove the sprite file if it's going to be replaced.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Mar 20, 2014
1 parent db3c621 commit 3e78b9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compass/sass_extensions/sprites/sprite_methods.rb
Expand Up @@ -69,6 +69,7 @@ def generate

def cleanup_old_sprites
Dir[File.join(Compass.configuration.generated_images_path, "#{path}-s*.png")].each do |file|
next if file[filename]
log :remove, file
FileUtils.rm file
Compass.configuration.run_sprite_removed(file)
Expand Down

0 comments on commit 3e78b9a

Please sign in to comment.