Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 513
Mark Robinson Avatar asked Feb 25 '10 17:02

Mark Robinson


3 Answers

In your config.rb file:

output_style = :compressed

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

like image 130
Rob Wilkerson Avatar answered Nov 07 '22 02:11

Rob Wilkerson


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

compass watch --output-style=compressed
like image 20
svassr Avatar answered Nov 07 '22 03:11

svassr


i use the following terminal command

compass compile -e production --force

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

like image 9
Gavin Bruce Avatar answered Nov 07 '22 03:11

Gavin Bruce