Description
Feature Proposal
Support @import list-of-media-queries
syntax. Currently the plugin ignores and strips the media query from the output, making runtime-conditional import impossible without additional plugins.
Feature Use Case
@import "./dark.css" (prefers-color-scheme: dark);
Currently the plugin outputs the content of dark.css
file without any media query condition, so the CSS is applied unconditionally at runtime:
/* content of dark.css */
A better output would be:
@media (prefers-color-scheme: dark) {
/* content of dark.css */
}
Metadata
Metadata
Assignees
Labels
No labels