2017-08-08 77 views
1

我無法阻止我的/.sass-cache目錄被創建。無法禁用SASS緩存

我通過運行在嘗試此:

sass --no-cache

但運行不執行任何操作。當我拉起幫助標誌,這就是我得到:

Miscellaneous: 
    -i, --interactive    Run an interactive SassScript shell. 
    -c, --check      Just check syntax, don't evaluate. 
     --precision NUMBER_OF_DIGITS How many digits of precision to use when outputting decimal numbers. 
            Defaults to 5. 
     --cache-location PATH  The path to save parsed Sass files. Defaults to .sass-cache. 
    -C, --no-cache     Don't cache parsed Sass files. 
     --trace      Show a full Ruby stack trace on error. 
    -q, --quiet      Silence warnings and status messages during compilation. 

看到這個之後,我又試圖sass -C, --no-cache但得到這個錯誤:

OptionParser::InvalidOption: invalid option: -, Use --trace for backtrace.

如何禁用./sass-cache的創建夾?

回答

2

使用

sass -C 

sass --no-cache 

但不能同時使用。

如果使用config.rb,然後加入:

asset_cache_buster = :none 
cache = false