Closed rafaellyra closed 9 years ago
What do you mean by "generate the sprite in another path"? How are you using the plugin?
My icons are on an path like: "app/assets/icons", and I am generating the sprite at "public/assets/images". The plugin is working but just when I dont change the: "imagesDir" compass property I have this error.
I am using the "grunt-contrib-compass" plugin to generate the sprites, the import is made thus: @import "vendor/Retina-sprites-for-Compass/retina-sprites"; and the scss icon file is thus: @include use-sprite('trash');
For my understanding: your icons
and icons-2x
folders are not in your image folder?
The icons and icons-2x are in the "app/assets/images", i think the problem is compass is looking for generated sprite on the same path to get the generated sizes, but they are on another path.
I've found a issue on compass about my problem: https://github.com/Compass/compass/issues/1077, I keep looking for a solution.
The solution is on this commit: https://github.com/Compass/compass/commit/c109bf8279a35bb17e2f56afe079f6ac79f0a46f But this is not on any stable compass version :(
@rafaellyra I see the problem. That's an annoying one for you. I don't know if I can help you fix it by changing the mixin.
I think something like this: https://github.com/Compass/compass/issues/1077#issuecomment-48431732, can solve the problem but I think this is not a problem of the mixin so I will wait a solution on Compass or try some alternatives for Compass.
Thanks for your help :+1:
Thanks for participating and wanting to make this plugin better.
When I generate the sprite in another path the compass throw this error:
"Errno::ENOENT on line ["28"] of /Library/Ruby/Gems/2.0.0/gems/compass-0.12.6/lib/compass/sass_extensions/functions/image_size.rb: No such file or directory - app/assets/img/icons-2x-sfd1cfbb0ae.png Run with --trace to see the full backtrace"
Can I set a different path to generate the sprites?