Replies: 1 comment
-
Sorry, not sure I have a good answer for you here. It's unlikely to be a supported feature out of the box. One option would be to use a custom resolver with the bundler to implement something like this. You could try implementing the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello :) A few months ago, I opened an Issue with a feature request, I thought it may rather belong here in the discussions.
I use custom media queries in almost every project. With PostCSS, I would utilize @csstools/postcss-global-data with the following configuration to inject all custom media queries into every file, eliminating the need to import them every time.
In Lightning CSS, I haven't found any alternative for injecting custom CSS into every file as I did with PostCSS. Currently, I have to manually import _media.css into every CSS file. Have I overlooked this feature, or is it not yet possible? I am using Lightning CSS in Vite projects (SvelteKit, Astro).
I would appreciate any feedback or considerations regarding the possibility of adding this as a feature.
Thanks for reading!
Beta Was this translation helpful? Give feedback.
All reactions