[astro-purgecss] integration removes rules with top level :where() #676
Labels
astro-purgecss
Issues related to astro-purgecss package
dependencies
Pull requests that update a dependency file
Describe the bug
Purgecss purges
:where()
top level rules from the astrobuild
.To Reproduce
Steps to reproduce the behavior:
Write this in your css:
Then
npm run build
in your Astro project. Inspect the bundled CSS file and the rule will be gone.One potentially helpful detail, if your
:where()
is not at the top level, then it won't be purged, so something like this for instance will work as expected:The text was updated successfully, but these errors were encountered: