A necessary command before going live with your Compass project
June 26, 2014
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