-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate sprite on every save #9
Comments
Hmmm, that's really weird... this seems to be a recurring theme. What happens if you try and run the sample project folder, does that do it as well? |
I haven't try the sample project, but I have other projects where I use your mixin and sprites does not generate on every save. |
You think it's related? I'm not on the problematic project actually, when i'll go back on it, i'll try to find exactly what's happen. I'll let you know. Thanks again for your useful mixin |
You know what? I just noticed in a log from CodeKit that the sprite sheet IS regenerated on every compile. In fact, it is regenerating the same sprite sheet one time for each icon in each directory. I caught these four lines in my CodeKit log on an unrelated error:
It was those same four lines over and over. The file names didn't change. I have 37 icons each in I didn't notice this earlier, because the sprite sheet name ends up being the same, so it's not like there are a bunch of different sprite sheets in my project, it's just the compiler overwriting the same sprite sheet one time for each icon in the sheet. This would definitely explain the very long compile times I've been experiencing... Maybe this is a useful clue to debugging this particular issue? |
Interesting! I'll have to checkout this later on next week. It could definitely stand to get some optimizations! |
This issue occurs in particular conditions … but what conditions exactly ? I'll try next week to find what in my projects causes this issue or not. I let you know. |
Any progress here? |
@noslouch Not yet, i'm going to create a project tomorrow afternoon and run it though CodeKit, LiveReload, and the CLI to see if I can suss out the problem. I'll keep you posted! |
Thanks @AdamBrodzinski ! |
@ValentinCreative Did you check your compass configuration? Maybe you are using {force:true;} |
I have the same issue! Great mixin btw. It happens for each @include retina-sprite(); used |
@MathRivest , you may want to try out NovaScreen's fork to see if it fixes this: This will hopefully be merged into this repo soon, under a 2.0 release (with breaking api changes). It looks like it should fix the huge slowdown that retina-sprites currently has. |
Hi Adam,
First, thanks for your very usefull mixin.
I have the same issue than issues #5 & #8.
But the difference is that I don't use CodeKit (only command line) and I use the "compass watch" command.
Every single time I save any .scss, it generate the sprites, even if I don't change any icon.
Thanks :)
The text was updated successfully, but these errors were encountered: