Replies: 2 comments 4 replies
-
Tree shaking will only affect the javascript, so any unused CSS won't be removed. When the styles are used in the file they are defined the style9 compiler will skip any unused styles but it can't do so for exports. Apart from that your use case should work. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, you could implement something like that, it shouldn't be too hard. I don't think it belongs in style9 though. Looking at your Qwik example the problem is indeed the added export statement. Without that it should work fine |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tailwind's popularity shows that there's something about their flavor of atomicity. It's certainly nice to just put the class
antialias
on a document and it translates to the incatation for antialiasing text.So I wonder if it is possible to create a library file of tailwind-like classes (so a huge shared file), and then tree shaking will only keep the classes that are actually used?
Beta Was this translation helpful? Give feedback.
All reactions