user1192357 user1192357 - 1 year ago 148
CSS Question

How to ignore comments in sass partial files?

I'm using SASS and I have partial file for variables: _variables.scss.
Above some group of variables, I'm using a comments. For ex.

/* Colors */
$primary_red: #c02323;
$dark_red: #84000f;
$blue_bg: #007eb6;

When using partials, the code is ignored in the css file, but the comments are showing:

enter image description here

Is there any way how to prevent them to show?

Answer Source

If you use inline comments, they won't show up in your compiled file.

For example:

// Colors
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download