AdamBrodzinski / Retina-Sprites-for-Compass

A mixin for creating retina sprites with hover & active states
MIT License
233 stars 35 forks source link

Sprite image generated at every call #8

Closed briice closed 11 years ago

briice commented 11 years ago

Hi Adam, I have weird bug not necessarily related to your gist, but I can't find my way around it. I explained the issue here but got no answer from the compass team so far: https://groups.google.com/forum/?fromgroups=#!topic/compass-users/XPpgzYQtd3o.

Any idea? Am I missing something?

AdamBrodzinski commented 11 years ago

Hmmm, are you using CodeKit to watch and compile the project? Was this issue happening just after the upgrade?

There was a similar issue where images were being re-composited on every save.

I still haven't upgraded my compass lately but compile times with a change were usually under 10 seconds, and I have over 30 retina sprites on Tagit's site. It should only generate a sprite when the source images change.

briice commented 11 years ago

Hello, thanks for your answer, it helped me find a solution. I was not using CodeKit but a command line script, which was executing compass compile on a specific .scss file instead of the whole project. In that case, the sprite is generated with every single declaration. If I target the whole project instead, it detects that the images are unchanged. I have no idea why it's not working in the first case, but as long as it works now, that fine with me. I'll report that to the compass team anyway. Thanks!

AdamBrodzinski commented 11 years ago

Awesome! Let me know if you have any more issues.