-
-
Notifications
You must be signed in to change notification settings - Fork 608
Source Map + Inline Images = Invalid CSS #484
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
@IdanCo also you Data should be |
@IdanCo #491 landed see @evilebottnawi comments and if still any regressions feel free to reopen or open a new issue :) |
Wow, kudos for the quick reply and the excellent test! I'm reopening this because for some reason (not sure how i missed it before) this only reproduces when sass-loader is present. Now, i now the reasonable thing would be to head out to their repo and report this issue, but before i do so there is still something strange the seems to originate from css-loader: the sourcemap flag still switches this bug on and off. I've created a demo branch - https://github.com/IdanCo/webpack-modular/tree/inline-images Any chance you can take a look at it? even if it's a sass-loader issue, the reason css-loader manifests it may be relevant. If there's any further information i can supply feel free. |
@evilebottnawi - thanks for the tip! this code is taken from Bootstrap 4 - |
@IdanCo near future i try to investigate this |
@IdanCo and yep bootstrap have weird lines with svg, maybe this is due to something special in |
@IdanCo wip |
@IdanCo trouble not in |
we can close this issue in favor webpack-contrib/style-loader#214 i can try resolve this issue in near future |
@IdanCo just update |
You're all awesome. Best response(s) i ever got on github! Ill let you know if there's any news |
@IdanCo also i found why bootstrap don't encoded all url more infomation about this https://css-tricks.com/probably-dont-base64-svg/ |
just for reference, you were spot on - upgrading style-loader fixed the issue. |
BUG: When processing embed images in css with the
SourceMap
flag set totrue
, invalid css is outputted. Originated from bootstrap 4.I'm trying to compile the following css:
code is based on this
When the
SourceMap
flag is off, all is fine and well. But for some reason, when theSourceMap
flag is on, it is compiled to this invalid css -notice that
http://localhost:8080/
suddenly popped at the beginning, which makes the css invalid.Turning off URL handling doesn't work as mentioned here - #44 (comment)
The webpack rule looks like this -
I've bangged my head around this one for a long time and couldn't come up with anything. I'd be very glad if someone could point me in the right direction.
Webpack: 2.3.3
css-loader: 0.27.3
UPDATE:
Not sure if it helps, but notice this:
stroke='rgba(0, 0, 0, 0.5)'
// beforestroke='rgba(0, 0, 0, 0.5")'
// afterThis extra quote sign can't be good...
The text was updated successfully, but these errors were encountered: