-
Notifications
You must be signed in to change notification settings - Fork 12k
Ressources included in CSS with a relative path are broken #10378
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
This appears to be an issue with embedded JS stylesheets (used only in development). Using the extract CSS option provides the proper path. Relative assets within an actual stylesheet are referenced to the location of the stylesheet. |
Unfortunately a lot of options, including |
experiencing the same here |
@cyrilletuzi many of those options are now available on master. Unfortunately, not the one in question here. However, a fix has been provided to workaround the underlying issue in the |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
src/style.css
, include a ressource with a relative path, like a font:Observed behavior
If the ressource is small, it's inlined with
data:
so it works.If the ressource is big, the path is transformed to an URL relative to the current location, so:
/
), it works (URL will behttp://www.example.com/material-icons.woff2
)/page/2
), it fails (URL will behttp://www.example.com/page/material-icons.woff2
)Desired behavior
Should work.
The text was updated successfully, but these errors were encountered: