Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This section is incomplete and in-progress. Please be patient we are working to develop the handbook as quickly as is possible.
Read this: https://drupal.org/node/2009540
How to remove line @media -sass-debug-info in the css file compiled
You just have to add in your file config.rb located in your theme's folder this line before the condition if (environment.nil?)
environment = :production
Or you could compile your css with the command line
compass compile -e production --force
Comments
config.rb setting
I'm using
environment =: production
as stated above, but the resulting css still has-sass-debug-info
after compiled. What am I missing?Typo
I believe you need to use
environment = :production
(ie, the colon is part of "production" not part of the operator "=".Restart Compass
Also, you must restart your compass watch to bring in the new config.rb settings.