How do I output compressed CSS from Compass?

2020-05-14 16:19发布

How do I configure compass to output smaller or compressed CSS files? I tried compass -s compressed but that didn't work.

3条回答
Emotional °昔
2楼-- · 2020-05-14 17:00

Did you try with the full name of the argument in command line ?

compass watch --output-style=compressed
查看更多
冷血范
3楼-- · 2020-05-14 17:11

i use the following terminal command

compass compile -e production --force

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

查看更多
叛逆
4楼-- · 2020-05-14 17:16

In your config.rb file:

output_style = :compressed

More at http://compass-style.org/help/documentation/configuration-reference/.

查看更多
登录 后发表回答