One-off Compass compiles

Compass can compile to different output formats as 'one-offs'. For example, suppose while developing, it would be handy to check what the minified file size of the generated CSS is. Rather than alter the config.rb back and forth, we can achieve this with a command:

compass compile --output-style compressed --force

Similarly, if working with a compressed output style as standard, a one-off expanded compile could be generated as follows:

compass compile --output-style expanded --force

Get Sass and Compass for Designers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.