How to speed up the compass?

Almost everything is written in the header, except for adding additional information. It can be said that I have a compass project that imports a lot of files and partial file modules, such as the sassy-button, some partial and the modules themselves import other partial or the same ones (just to make sure that the dependencies are always imported by some way).

The question for me here is to speed up css generation when viewing my project for modifications.

This is what my sass project looks like:

modules/ css3/ sassy-buttons/ _sassy-buttons.scss _fancyselect.scss partials/ _base.scss _typography.scss _resetHtml5.scss _form.scss _ui.scss _layout.scss _header.scss _main-menu.scss _variables.scss config.rb screen.scss print.scss activity.scss testimonials.scss default.scss 

And here is the contents of the config.rb file:

 http_path = "/" css_dir = "../../../../../web/static/css" sass_dir = "sass" images_dir = "img" http_images_path = "/static/img" generated_images_dir = "img" generated_images_path = "../../../../../web/static/img" http_generated_images_path = "/static/img" javascripts_dir = "js" fonts_dir = "font" http_fonts_path = "/static/font" line_comments = true output_style = ":expanded" 
+4
source share
1 answer

You can speed up sprite creation by installing the C extension named oily_png , which is faster than the standard ruby chunky_png extension . Just install via the command line: gem install oily_png . The compass will use it automatically.

+1
source

All Articles