Let say I would like to set nested style for development and compressed for production. There is only one option in Compass configuration file:
output_style = :compact # or :nested, :expanded, :compressed
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It appears that it’s pretty easy:
To check it I’ve run this rake task in different environments (I had to change sass source before running this task):
You can place this task in lib/tasks/sass.rake.
Else I have this task running in my Capistrano deploy.rb to automatically update stylesheets on production during deployment: