How to remove automatic comments generated by Compass?

Asked

Viewed 61 times

1

I write the code in SCSS, and when the CSS comes with comments where the Class or ID is in my SCSS.

Does anyone know how to remove these comments generated by Compass from my CSS file?

2 answers

4


Change the settings in your config.Rb.

You can set the variable output_style for :compressed for example. In the line comment of this variable, by default comes written other options, you can test them to see which fits best in your need.

0

You can disable the line comments. They are usually used to help debug and troubleshoot large projects with many SASS files.

in the config.Rb you add:

line_comments = false

Browser other questions tagged

You are not signed in. Login or sign up in order to post.