-
-
Notifications
You must be signed in to change notification settings - Fork 608
Emojis in CSS broken since 2.0.0 #880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@chrisEff we have tests on emoji and all work fine, please create minimum reproducible test repo |
Tests #881 and you can see emoji are not broken |
Here you go: But if you change the css-loader version in |
@chrisEff weird, confirmed, investigate |
@chrisEff no, it is not bug in TL;DR Without |
A big THANK YOU for investigating and coming up with with a solution so quickly! 👍 But still: If this is the problem, why did it work then with the old css-loader? |
@chrisEff old |
Expected Behavior
In my CSS I have a section with a
:before
selector and acontent
property. Thecontent
property contains a light bulb emoji. With css-loader 1.01 the emoji is converted into\1F4A1
, which Chrome then in turn nicely renders as a lightbulb.Actual Behavior
With every version since 2.0.0 the emoji becomes
�
, which does not get rendered as an emoji.Code
How Do We Reproduce?
Use an emoji in a CSS
content
property and require the CSS file via css-loader + style-loader, like shown in the code snippets above. My webpack config doesn't contain anything that seems relevant for this.The text was updated successfully, but these errors were encountered: