Skip to content
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

[non-js-imports] Relative URLs in CSS cannot be properly resolved if CSS is imported as style tag #440

Open
t2ym opened this issue Aug 2, 2023 · 0 comments

Comments

@t2ym
Copy link
Owner

t2ym commented Aug 2, 2023

[non-js-imports] Relative URLs in CSS cannot be properly resolved if CSS is imported as style tag

Root Cause

  • If <style> tag is appended to document.head, the base URL is set as the entry page, which is different from the base URL for the imported CSS

Workaround

  • Use <link> tag instead at config['non-js-imports'].cssImportTag: 'link'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant