Does SCSS support inline comments?

Can I save an inline comment like this in a .scss file

 thead { display: table-header-group; // h5bp.com/t } 

I do not need this comment in my CSS release.

+47
css sass
Nov 13 '12 at 5:28
source share
2 answers

SASS has two different types of comments.

  • Single comments // will be removed by the .scss handler and will not appear in your .css file.
  • Multi-line comments */ are valid CSS and will persist * between translations from .scss to your .css file.

Sounds like inline comments // is what you are looking for.

+81
Nov 13 '12 at 5:36
source share
— -

Yes , you can do it in SCSS .

Use inline comment: // .

Single-line comments are removed in the CSS output.

0
Apr 10 '17 at 6:41
source share



All Articles