Why is the Sass cache folder created

I started trying out Sass for my css work. In the directory where my Css file is located, I also see the ".sass-cache" folder. Can someone tell me why this folder is created and safe if I delete it.

thank,

+70
sass
Feb 18 '13 at 11:04 on
source share
2 answers

By default, Sass caches compiled templates and partial ones. This greatly speeds up the reassembly of large collections of Sass files and works best if Sass templates are split into separate files, all @imported into one large file.

.sass-cache Sass places cached patterns in the .sass-cache directory. In Rails and Merb, they come in tmp/sass-cache . The directory can be configured using the parameter :cache_location .

If you do not want Sass to use caching at all, set the :cache parameter to false .

You can configure the location of the Sass cache by setting the Sass parameter in the compass configuration file as follows:

 sass_options = {:cache_location => "path\to\tmp\sass-cache"} 

Source: Sass Link

+80
Feb 18 '13 at 11:37
source share

If your main problem is β€œpreventing the development environment from being clicked when multiple developers use / modify it,” you can add it to your .gitignore file. As pointed out in another answer, Sass cache files speed up compilation by modifying the Sass file since the last compilation.

In my experience, standard practice considers their temporary files and omits them from version control.

+5
Aug 19 '15 at 15:23
source share



All Articles