我无法阻止/.sass-cache创建我的目录.
我通过运行来尝试这个:
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:无效选项: - ,使用--trace进行回溯.
如何禁用./sass-cache文件夹的创建?
使用
sass -C
要么
sass --no-cache
但不是两个.
如果使用config.rb,则添加:
asset_cache_buster = :none 
cache = false