Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change location of sass-cache for SASS

From the docs I see you can change the location of the cache for SASS.

However, I am not sure of the exact syntax to use. I have a Zurb Foundation project and with that comes a config.rb file. I assume that is what needs to be updated to change the location of the cached files.

What is the proper setting that needs to be placed into this file to move the cache? I would like for it to reside at c:\temp (I am in a Windows environment).

like image 576
John Livermore Avatar asked Dec 13 '12 15:12

John Livermore


People also ask

Where is Sass cache?

Without a framework, Sass puts the cached templates in the . sass-cache directory. In Rails and Merb, they go in tmp/sass-cache . The directory can be customized with the :cache_location option.

Does Sass need to be compiled?

In 2021 most browsers understand sass, BUT compiling is still encouraged for performance and compatibility.

How is Sass compiled?

Sass works by writing your styles in . scss (or . sass) files, which will then get compiled into a regular CSS file. The newly compiled CSS file is what gets loaded to your browser to style your web application.

What is the extension for Sass files?

Its file extension is . scss . Sass is an older syntax of Sass. It uses indentation rather than brackets.


1 Answers

Just add this lines (or add :cache_path to your actual sass_options):

sass_options = {:cache_path => "C:/temp"}
like image 161
Simon Boudrias Avatar answered Oct 04 '22 15:10

Simon Boudrias