Stop remove empty selectors
See original GitHub issueSass will remove empty selectors by default, Is there an options to disable this?
Such as
.empty {
}
will compile to nothing, but I want it compile to .empty{}
, otherwise I got error when using css-modules.
ref: https://github.com/sass/node-sass/issues/1569 https://github.com/css-modules/css-modules/issues/140
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8
Top Results From Across the Web
empty - CSS: Cascading Style Sheets - MDN Web Docs
The :empty CSS pseudo-class represents any element that has no children. Children can be either element nodes or text (including whitespace) ...
Read more >empty - CSS-Tricks
The CSS :empty pseudo-class selects any element that does not contain children for a given selector.
Read more >CSS :empty Selector | SamanthaMing.com
No problem, you got CSS :empty selector... ... Easy, you can use the :empty selector ... Here's another example using :empty to hide...
Read more >CSS :empty Selector - W3Schools
The :empty selector matches every element that has no children (including text nodes). Version: CSS3. Browser Support. The numbers in the table specifies...
Read more >not(:empty) CSS selector is not working? - Stack Overflow
If I remove the :not(:empty) part, it works just fine. Even if I change the selector to input:not(:empty) it still won't select input...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can be done with important comments
What @mgreter said. Although, a random weird comment isn’t very self documenting so maybe wrap it up in a mixin: