Stop compass from regenerating sprite all the time

Situation: I am using grunt + grunt-contrib-watch + grunt-contrib-compass . I use Compass to automatically create my sprite. My .sass files are collected every time I save that exactly what I want. But this means that my sprite is also restored every time I save, which was great in the beginning, but will forever go away when I have about 30 images (+ @ 2x versions) that are included in this sprite.

Question: Is there a way to stop Compass from recovering a sprite every time I save it? Perhaps he could just restore it if there really were some changes regarding the sprite.

Thank you for your help!

+4
source share
1 answer

The compass should cache it by default unless you use set force: true . Try running compass from the terminal and see if this happens.

The grunt-contrib component is just a thin shell around the compass.

+3
source

Source: https://habr.com/ru/post/1487041/


All Articles