chriseppstein/compass — Issue #647: cleanup_old_sprites deletes too many "old" sprites
Author: rvock
Created: 2011-12-13 21:54:15+00:00
State: open

Ive got multiple sprite folders:

icons
icons-area
icons-pagination

When the icons sprite is generated, all sprite-files are deleted (including the icons-area and icons-pagination Sprite).
The problem lies in the cleanup_old_sprites method in the sprite_methods.rb file.
It deletes the icons-*.png instead of the icons-s*.png.

I noticed the problem when splitting my sass-files which resulted in the icons-sprite being regenerated and the icons-pagination staying the same. The pagination images were missing in the final output.