Mark Robinson
Mark Robinson

Reputation: 1619

How do I output compressed CSS from Compass?

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

Upvotes: 32

Views: 28936

Answers (3)

Rob Wilkerson
Rob Wilkerson

Reputation: 41236

In your config.rb file:

output_style = :compressed

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

Upvotes: 62

svassr
svassr

Reputation: 5668

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

compass watch --output-style=compressed

Upvotes: 25

Gavin Bruce
Gavin Bruce

Reputation: 1809

i use the following terminal command

compass compile -e production --force

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

Upvotes: 9

Related Questions