如何配置罗盘输出小于或压缩的CSS文件?我想compass -s compressed,但没有奏效。

有帮助吗?

解决方案

在您的config.rb文件:

output_style = :compressed

更多在 http://compass-style.org/help/documentation/configuration -reference /

其他提示

您是否尝试过在命令行参数的全名?

compass watch --output-style=compressed

我使用下面的终端命令

compass compile -e production --force

参考: http://compass-style.org/help/tutorials/production-css/

scroll top