A necessary command before going live with your Compass project

Compass

Compass compiles your CSS from the different Sass files.

In the default configuration this also includes debugging information. Once you go live, you'll want efficient and concise code. This is possible using one (OS X) Terminal command:

compass compile -e production --force

This ensures that the files are about half the size!

The next regular compilation will rewrite all the debugging information. If you never want debugging information, which surely is inadvisable during development, then you'll have to change one rule in the config.rb file:

environment = :development

And change it to:

environment = :production

Please note that the colon should be there and in the right place!

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.