Milan Savov
Milan Savov

Reputation: 91

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?

Upvotes: 6

Views: 2243

Answers (2)

WebGirl
WebGirl

Reputation: 11

I use //------colors------//. Probably overkill, but I like to have my comments not blend in so much so I can see them.

Upvotes: -1

ThomasM
ThomasM

Reputation: 2677

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

For example:

// Colors

Upvotes: 9

Related Questions