32

如何配置指南针以输出较小或压缩的 CSS 文件?我试过compass -s compressed了,但没有用。

4

3 回答 3

62

在您的config.rb文件中:

output_style = :compressed

更多信息请访问http://compass-style.org/help/documentation/configuration-reference/

于 2010-02-25T19:35:54.687 回答
25

您是否尝试在命令行中使用参数的全名?

compass watch --output-style=compressed
于 2012-11-01T20:31:20.603 回答
9

我使用以下终端命令

compass compile -e production --force

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

于 2013-02-12T03:52:49.910 回答