-
-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Labels
Description
Describe the bug
With the variables: true configuration option, PurgeCSS can remove unused variables declared like this:
:root {
--tw-rotate-x: rotateX(0);
}However, it doesn't remove the fairly recently introduced @property rule like this:
@property --tw-rotate-x-2 {
syntax: '*';
inherits: false;
initial-value: rotateX(0);
}To Reproduce
- Go to https://stackblitz.com/edit/vitejs-vite-ogqm14x7?file=style.css&terminal=build
- Wait for the build to finish or run
npm run buildin the terminal. - Inspect the CSS file in the
dist/assetsfolder.
Expected Behavior
CSS variables declared using @property should be removed
Environment
N/A
Add any other context about the problem here
No response
Code of Conduct
- I agree to follow this project's Code of Conduct