Comments in Sass

In Sass you can define multiline comments the same way as in CSS:

/* Just some comment
about some style */

Unless you use the compressed output format, these multiline comments will be kept in the final CSS.

You can force Sass to keep multiline comments in the final output by using this syntax with the additional !:

/*! Just some comment
about some style */

You can also define single-line comments:

// Color my life
body {
  background-color: mistyrose;
}

Single-line comments won’t be kept in the final CSS, no matter which output style you use for compiling your Sass to CSS.

✖ Clear

πŸ•΅ Search Results

πŸ”Ž Searching...