-
Notifications
You must be signed in to change notification settings - Fork 128
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
background url(./barbar.png) doesn't work #61
Comments
Hello @burgalon, since we have postcss-assets plugin, I suggest you to load images to your styles by using its functionalities. background: inline('./barbar.png'); |
Hey @altayaydemir Inlining an image requires them to be base64 encoded into the CSS which isn't very efficient for big images. |
It seems that this problem occurs when we enable the There are opening PRs for solving this issue in webpack/style-loader repo: |
Is this issue still a thing? if so, can we get clear steps to reproduce? |
Yep, I had the same issues with fonts. It was resolved by disabling the sourceMap option as @basicsharp described above. |
So I guess this and #142 are dupes. |
When using background image in CSS, e.g:
the compiled CSS seems to resolve the asset fine, however the browser is trying to load it relatively to the blob:// css file which was injected to the HEAD causing an incorrect host name by Chrome
The text was updated successfully, but these errors were encountered: