-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
Module build failed: SyntaxError: Unexpected token h #33
Comments
Could you paste the complete error? |
|
Oh you are using the cssnext-loader... So the real css code is different: This: :root {
--vr-Color-white: white;
}
.class {
filter: drop-shadow(0 1px 0 var(--vr-Color-white));
} transpiles to this: .class {
filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feGaussianBlur in="SourceAlpha" stdDeviation="0" /><feOffset dx="1" dy="2" result="offsetblur" /><feFlood flood-color="rgba(255,255,255,1)" /><feComposite in2="offsetblur" operator="in" /><feMerge><feMergeNode /><feMergeNode in="SourceGraphic" /></feMerge></filter></svg>#filter');
-webkit-filter: drop-shadow(0 1px 0 white);
filter: drop-shadow(0 1px 0 white);
} |
cssnext-loader is use after so not sure why it bring a problem :/ |
This was a bug in css-loader: It didn't like |
👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following CSS ia breaking my build
It's totally valid CSS. It seems related to the parser. Maybe you should consider using a better parser like postcss ?
The text was updated successfully, but these errors were encountered: