How do I output compressed CSS from Compass?

2020-05-14 16:50发布

问题:

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

回答1:

In your config.rb file:

output_style = :compressed

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



回答2:

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

compass watch --output-style=compressed


回答3:

i use the following terminal command

compass compile -e production --force

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