Removing unused classes v4 #18369
Answered
by
wongjn
alekseykurylev
asked this question in
Help
-
Hi everyone. @import "tailwindcss";
@source "../node_modules/@repo/ui"; I'm using the ui package from monorepo. The application uses only one component from this package, but all styles are added to the build. Is this how it should be, or am I missing something? shadcn has a similar situation https://ui.hacks.com/docs/monorepo Environment: |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Jun 23, 2025
Replies: 1 comment 2 replies
-
You're not missing something. That's how I would expect it to be. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could:
@source
to only point to files you use:not
to exclude files you don't use:not inline()
to exclude class names you know you don't need: