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).
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.
In 2021 most browsers understand sass, BUT compiling is still encouraged for performance and compatibility.
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.
Its file extension is . scss . Sass is an older syntax of Sass. It uses indentation rather than brackets.
Just add this lines (or add :cache_path
to your actual sass_options
):
sass_options = {:cache_path => "C:/temp"}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With