2017-08-08 74 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