【问题标题】:Change location of sass-cache for SASS更改 SASS 的 sass-cache 位置
【发布时间】:2012-12-01 12:30:04
【问题描述】:

From the docs我知道你可以更改 SASS 的缓存位置。

但是,我不确定要使用的确切语法。我有一个 Zurb 基金会项目,并附带一个 config.rb 文件。我认为这是需要更新以更改缓存文件的位置。

需要在此文件中放置哪些正确设置才能移动缓存?我希望它驻留在c:\temp(我在 Windows 环境中)。

【问题讨论】:

    标签: sass zurb-foundation


    【解决方案1】:

    只需添加此行(或将:cache_path 添加到您的实际sass_options):

    sass_options = {:cache_path => "C:/temp"}
    

    【讨论】:

      【解决方案2】:

      在你的“config.rb”中添加这一行:

      cache_path = "C:/temp/.sass-cache"
      

      如果您使用“C:/temp/”,您最终会得到几个名称基于哈希码的文件夹。如果您以后不知道它们是什么,这可能会让人感到困惑。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-11-19
        • 2016-06-19
        • 2015-06-12
        • 1970-01-01
        • 2012-11-21
        • 1970-01-01
        • 2018-10-13
        • 1970-01-01
        相关资源
        最近更新 更多