-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS attribute selectors are removed even when whitelisted #277
Comments
I experience the same issue, What I can say so far:
|
Tried to debug it, So something seems to be wrong with handling selectors |
One more update, it is defienitly related to d7f719d#diff-ab0e95239dfd1a3bb06b9cd803c90c43 e.g. d7f719d#diff-ab0e95239dfd1a3bb06b9cd803c90c43R539 this line confuses me a lot, and changing it back to return true does actually fix my issue (not the tests though). |
Alright, I got closer to the actual issue. I found out that the attributes are now more important than before ;). I had following regex: Unfortunately I couldn't find any way how to get the [data-v-*] attributes that nuxt / vue adds during build step, so my only idea to get things working again with scoped css is now to whitelist all data-vs: Well it turned out, here is the conenction back to the original issue of this ticket. Whitelisting of attributes isn't currently working. I've created a PR #279 to fix this. regards and sorry for so many comments and text ;) thought maybe it helps to reproduce |
The cause of this issue might be related to the fix introduced for #110 |
PR for whitelisting of attributes has been merged #279 |
PurgeCSS version: 2.0.5
Code
style.css
postcss.config.js
Expected Behavior
.button[disabled]
is not removedActual Behavior
.button[disabled]
is removedThe text was updated successfully, but these errors were encountered: