-
Notifications
You must be signed in to change notification settings - Fork 193
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 custom media not working in development mode #402
Comments
Unfortunately, the Vite plugin can only process one file at a time so |
@devongovett This code also not works in development mode: @custom-media --screen-tablet (width >= 860px);
body {
background: blue
}
@media (--screen-tablet) {
body {
background: red;
}
} |
Seems to work in the playground. Make sure that you are setting a |
@devongovett I set I updated my repo: https://github.com/azat-io/lightningcss-custom-media Could you try to run this project?
I expect a red screen but it's blue. |
I created a demo repo:
https://github.com/azat-io/lightningcss-custom-media
Look it up please.
If you run the command
pnpm start
,@custom-media
will not work.But if you build the project with
pnpm build
, everything will work correctly.The text was updated successfully, but these errors were encountered: