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

CSS with media and disabled prop not processed #9402

Open
7 tasks done
bluwy opened this issue Jul 28, 2022 · 0 comments
Open
7 tasks done

CSS with media and disabled prop not processed #9402

bluwy opened this issue Jul 28, 2022 · 0 comments

Comments

@bluwy
Copy link
Member

bluwy commented Jul 28, 2022

Describe the bug

CSS linked via <link rel="stylesheet" href="./bla.css" media="screen" /> is not processed by default after #6751. I think it's still good as we provide a way for this to work with the caveat that PostCSS won't process them.

This issue is to track progress on processing these CSS files.

I've looked into it, and it seems harder than expected, since we need to pass the attribute info to chunk.viteMetadata.importedCss to properly re-generate the links. Currently it's only a list of strings, which isn't enough without making a breaking change, since it's public API.

Reproduction

https://stackblitz.com/edit/vitejs-vite-7sqny9?terminal=dev

System Info

Stackblitz

Used Package Manager

npm

Logs

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants