How to include empty classes and identifiers in sass result

I just started using sass and still study. I use this command to generate css from sass:

sass --watch custom.scss:custom.css 

It seems empty classes and identifiers are being removed. Is it possible to include them in the given css?

+4
source share
1 answer

SASS never compiles empty classes, as a workaround you can add CSS comments inside the class without rules, so it will be compiled.

 .empty { /*I'm still empty*/ } 
+8
source

All Articles