Can I keep an inline comment like this in my .scss
file
thead { display: table-header-group; // h5bp.com/t }
I don't want this comment in my CSS output.
In SCSS permalinkIn SCSS Single-line comments start with // , and go until the end of the line. Nothing in a single-line comment is emitted as CSS; as far as Sass is concerned, they may as well not exist. They're also called silent comments, because they don't produce any CSS.
SCSS contains all the features of CSS and contains more features that are not present in CSS which makes it a good choice for developers to use it. SCSS is full of advanced features. SCSS offers variables, you can shorten your code by using variables. It is a great advantage over conventional CSS.
There are two different types of comments to consider in SASS.
//
will be removed by the .scss pre-procesor, and won't appear in your .css file. Multiline comments */
are valid CSS, and will be preserved* between the translation from .scss to your .css file.
!
. See http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#comments. It sounds like inline comments //
are what you're looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With