css-loader: broken escaping
What is the current behavior?
The escape symbol \
was lost
.grid { display: flex; flex-wrap: wrap; }
.grid.\-top { align-items: flex-start; }
.grid.\-middle { align-items: center; }
.grid.\-bottom { align-items: flex-end; }
=>
.grid { display: flex; flex-wrap: wrap; }\n.grid.-top { align-items: flex-start; }\n.grid.-middle { align-items: center; }\n.grid.-bottom { align-items: flex-end; }\n
What is the expected behavior?
Keep the escape symbol \
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 34 (17 by maintainers)
Another similar bug:
input.css
output.css
I’m having a slightly different issue.
Loader
input.css
transforms to:
output.css
☝️ notice the uppercasing of
E
. This breaks the unicode used in the font icon@jschlieber I was on vacation, in the near future I will take care of this, thanks for waiting
Also
Just infromation:
Also broken
I’ve got a workaround detailed here
@jschlieber Thanks for issue, confirmed. Let’s wait what says @TrySound (he has access for
postcss-*
plugins forcss-loader
)@evilebottnawi Ok, but what you’re telling me is that i can’t define my css selector as:
and I’m totally fine with that. But still, if classes are defined like this
as in the PredixUi CSS library (which btw is valid css). I can’t use it like it is intended, e.g.
because it ends up as
so I would have to use it like this
@jschlieber unfortunately no, try to found and fix problem today