css_unused_selector
using @apply
inside <style>
(Tailwind v4)
#14916
Replies: 1 comment
-
If you import your There's nothing that Svelte can do about this because it does not know how the file looked prior to preprocessing, so it would be the preprocessor's job to only put in the relevant things. If the advice that is currently on the beta docs works then I would use that instead. With regards to your "now I gotta do that import everywhere": You could use prependData from svelte-preprocess to avoid that. I'm not sure what else we can do / advice here, so I'm moving this to a discussion |
Beta Was this translation helpful? Give feedback.
-
Describe the problem
In the beta docs, you are guided to import the
theme
file only:However in a recent GitHub comment, Adam suggests importing the global
app.css
file instead:This causes multiple 'Unused CSS selector' errors:
Describe the proposed solution
Disable 'Unused CSS selector' warnings on
@import
reference statements:This is all I can think of as of now.
Importance
would make my life easier
Beta Was this translation helpful? Give feedback.
All reactions