How to change default sprite name generated by compass?

104 views Asked by At

I have a problem with compass sprites.

I used two different config.rb files for it, but I need to generate sprites in same directory.

But this sprites deleted each other.

Now sprites filename is icons-s2e073c2bbc.png

How can I change default file name for one of them to sprites-s2e073c2bbc.png (or something like this)

1

There are 1 answers

0
ArtemKh On

It's not a best solution, but maybe it will be help someone

I added this code in config.rb file and now it save sprite file in another directory and there is no conflict with another sprite files.

generated_images_dir = 'images/travel_sprite'
http_generated_images_dir = "/images/travel_sprite"
http_generated_images_path = "/images/travel_sprite"