Replies: 1 comment
-
seems this is the key https://panda-css.com/docs/guides/static#removing-unused-css |
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
-
Hi, we are currently evaluating panda css for our monorepo design system setup. According to the docs in the case of a monorepo the recommended approach is to just include the design system folder in the config like so:
include: ['../@acme-org/design-system/src/**/*.tsx', './src/**/*.{ts,tsx}']
Supposed then that I have then two components in my design system:
ComponentA:
ComponentB:
Then in
App.ts
only theComponentA
is imported from the design system.The generated resulting
index.css
contains classes for bothComponentA
andComponentB
even though only one of them is used in the final App.What would be the recommended approach to handle this use case? Since this quickly grows in size when new components are added to the design system and various applications inside the monorepo might require only a handful of provided components.
Beta Was this translation helpful? Give feedback.
All reactions