32

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

OldTroll
  • 773
  • 6
  • 22
Mark Robinson
  • 1,479
  • 2
  • 15
  • 34

3 Answers3

62

In your config.rb file:

output_style = :compressed

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

Matthias
  • 13,607
  • 9
  • 44
  • 60
Rob Wilkerson
  • 40,476
  • 42
  • 137
  • 192
25

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

compass watch --output-style=compressed
svassr
  • 5,538
  • 5
  • 44
  • 63
9

i use the following terminal command

compass compile -e production --force

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

Gavin Bruce
  • 1,799
  • 16
  • 28