We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@import
layer
@layer
@layer reset, bootstrap; @import url('https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.css') layer(bootstrap); @layer reset { h1 { margin-top: 100px; } }
This input is transformed into:
@import url('https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.css') layer(bootstrap); @layer reset, bootstrap; @layer reset { h1 { margin-top: 100px; } }
But the output CSS has a different meaning from the input CSS (bootstrap layer is now overridden with reset layer).
bootstrap
reset
Reproduction: https://stackblitz.com/edit/template-sapphi-red-postcss-sass-kasrpt?file=src%2Finput.css,postcss.js
The text was updated successfully, but these errors were encountered:
Thank you for reporting this @sapphi-red
This is a rather complex issue and will require a substantial rewrite. Is this an effort that Vite could support financially?
fyi: this issue doesn't exist in @csstools/postcss-bundler
@csstools/postcss-bundler
But there I didn't implement a lot of non-standard behavior nor did I provide any of the customization options that exist in postcss-import.
postcss-import
@csstools/postcss-bundler isn't suitable for Vite but it does show that this issue is solvable :)
Sorry, something went wrong.
No branches or pull requests
This input is transformed into:
But the output CSS has a different meaning from the input CSS (
bootstrap
layer is now overridden withreset
layer).Reproduction: https://stackblitz.com/edit/template-sapphi-red-postcss-sass-kasrpt?file=src%2Finput.css,postcss.js
The text was updated successfully, but these errors were encountered: