Open HammyNZ opened 11 years ago
That's not a cage buster it's the signature of the sprite so we know when it needs to be regenerated
Sent from my iPhone
On Nov 14, 2012, at 5:55 PM, Hamish notifications@github.com wrote:
I'm trying to disable cache busting when creating sprites in Compass as described here: http://compass-style.org/help/tutorials/configuration-reference/
However when I add: asset_cache_buster :none to my configuration file, this does not seem to do anything. The sprites continue to be generated in the following format:
- .png e.g. btn-sce806d218f.png This appears to be a common issue, so have thought this is an unreported bug: http://stackoverflow.com/questions/9183133/how-to-turn-off-compass-sass-cache-busting (work around on stackoverflow works for me)
Running on Windows 7 Compass 0.12.2
— Reply to this email directly or view it on GitHub.
Sorry, I've rediscovered this issue and only just noticed your comment.
Is there a setting in the configuration to have the sprite saved as just the sprite name? e.g. instead of btn-sce806d218f.png to be just .btn.png
The way its described in the configuration ("To disable the asset cache buster: asset_cache_buster :none") suggests that this is for disabling cache busting, hence the confusion :)
Keeping this alive. @scottdavis The way this currently works, when you add or remove individual images from a sprite folder, a brand new file gets made that needs to be managed by git. If your deployment pipeline compiles assets, it probably makes its own sprite, no?
I'm guessing that's part of the reason @HammyNZ and others want a hash-less filename.
What's the best course of action for managing compass sprite generation with source control? .gitignore?
Thank you.
I'm trying to disable cache busting when creating sprites in Compass as described here: http://compass-style.org/help/tutorials/configuration-reference/
However when I add:
asset_cache_buster :none
to my configuration file, this does not seem to do anything. The sprites continue to be generated in the following format:<spritename>-<hash>.png
e.g.btn-sce806d218f.png
This appears to be a common issue, so have thought this is an unreported bug: http://stackoverflow.com/questions/9183133/how-to-turn-off-compass-sass-cache-busting (work around on stackoverflow works for me)
Running on Windows 7 Compass 0.12.2