You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing this causes a bunch of errors because the // is being collapsed into a single /, resulting in URLs like http:/some.cdn.com/image.png in the compiled CSS, which look enough like relative paths to cause trouble and throw errors. I've discovered that using backslashes results in the absolute URLs I'm looking for, but that feels like a terrible hack that's just waiting to break at some point in the future.
I suspect this may be a problem deeper in the way query parameters are parsed in webpack, but I'd be happy with a solution or a cleaner workaround if anyone has ideas.
The text was updated successfully, but these errors were encountered:
I'm trying to prepend a hostname to absolute URLs in my CSS (don't ask 😄) by doing something like this:
Doing this causes a bunch of errors because the
//
is being collapsed into a single/
, resulting in URLs likehttp:/some.cdn.com/image.png
in the compiled CSS, which look enough like relative paths to cause trouble and throw errors. I've discovered that using backslashes results in the absolute URLs I'm looking for, but that feels like a terrible hack that's just waiting to break at some point in the future.I suspect this may be a problem deeper in the way query parameters are parsed in webpack, but I'd be happy with a solution or a cleaner workaround if anyone has ideas.
The text was updated successfully, but these errors were encountered: