S
S
Sergey2015-03-12 10:34:27
IDE
Sergey, 2015-03-12 10:34:27

Sprite generation speed in compass?

Not long ago I started using the compass sprite generation capabilities, but ran into a problem. Is it possible to increase sprite generation speed or not to generate them together with css every time when compiling?
On some projects, you have to wait quite a long time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Shabalin, 2015-03-12
@koilil

If you use the default settings, as described in the compass documentation, then there should be no problems, it should say "sprite unchanged".
If he re-generates the sprite each time, then you are doing something wrong.
Try moving the sprite generation to a separate .scss/.sass file. And only when updating the sprite, go into it to regenerate the sprite. Effectively, when you are developing a site, do not forget to re-create the files in production.

S
Sergey, 2015-03-13
@koilil

Thanks for the answer. The problem was in the mixin I was using to generate the sprites. It took a long time to process due to the formation right in the mixin sprite-map('sprites/' + $spriteName + '/*.png');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question