Closed Coachonko closed 1 month ago
Yea, because in this case style parsed as AST where p,
is start and {
is end of nested rules's name. The name itself is not processed in any way. We can probably come up with something here.
Workaround:
h1, h2, h3, h4, h5, h6 {
margin: 0;
overflow-wrap: break-word;
}
You should also know that when using template literals, your js bundle size increases if you use spaces, because template literals cannot be minified without a compiler.
Workaround:
h1, h2, h3, h4, h5, h6 { margin: 0; overflow-wrap: break-word; }
The name remains unprocessed and this just removes new lines right? I just use a new line for each element in a selector because I am used to how Prettier and editors typically format CSS
Ok, I will fix it later, think it will be a trivial task like str.replace(/,\s*/g, ',')
This is really not that important imo but I have noticed that rules like these aren't minified in the styled output
I expect
But styled generates this