How do I configure compass to output smaller or compressed CSS files? I tried compass -s compressed
but that didn't work.
Asked
Active
Viewed 2.9k times
32

OldTroll
- 773
- 6
- 22

Mark Robinson
- 1,479
- 2
- 15
- 34
3 Answers
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
-
Thanks, somehow missed that page in the wiki – Mark Robinson Feb 26 '10 at 12:21
-
The link works, it just points you to [a different url](http://compass-style.org/help/tutorials/configuration-reference/) – Rob Wilkerson Aug 24 '11 at 11:36
-
17Important thing to note: if Compass is already running while you're modifying your config.rb file, you have to restart Compass to execute the changes. – user110857 May 23 '13 at 14:35
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