user1192357 user1192357 - 1 year ago 58
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?


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

For example:

// Colors