Replies: 1 comment 1 reply
-
this is important, it should be put somewhere in panda docs 👀 |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi! I am having a problem with purgecss. I want to remove unused CSS custom properties for the smaller bundle size. I am using Next.js, and have this PostCSS config:
But after building the app and running
pnpm start
, all css variables are still there. Have anyone else tried to do this? What am I doing wrong?UPD. After fixing the structure of PostCSS config, all styled are deleted, even those I applied. E.g. when setting
css({ backgroundColor: 'amber.400' )}
, the custom properties for amber-400 is still removed and styles are not applied. Is there a way to only remove unused ones?Updated PostCSS config which purges all styles:
Beta Was this translation helpful? Give feedback.
All reactions