We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A bug
.c-card { color: black; } [class*="c-card--ghost"] { color: red; } [class*="c-card--ghost"].c-card--horizontal { color: green; } [class*="c-card--ghost"]:not(.c-card--horizontal.has-media) { color: pink; } .c-card--ghost-dark { background: blue; }
{ content: [path.resolve(dist, '**/*.html'), path.resolve(dist, '**/*.js')], css: [path.resolve(assets, '*.css')], safelist: { standard: ['body', 'html', 'img', 'a', ':lang'], greedy: [/^is-/, /^has-/, /^js/, /^no-js/, /^data-/, /^disabled/, /^c-card/], }, variables: false, }
.c-card { color: black; } [class*="c-card--ghost"].c-card--horizontal { color: green; } [class*="c-card--ghost"]:not(.c-card--horizontal.has-media) { color: pink; } .c-card--ghost-dark { background: blue; }
The selector [class*="c-card--ghost"] is purged even with a greedy selector of /^c-card/
[class*="c-card--ghost"]
/^c-card/
OS: macOS Node: 16 Package: purgecss@4.1.3
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
A bug
To Reproduce
CSS
PurgeCSS Config
Expected Behavior
Expected CSS after purge
Actual CSS after purge
The selector
[class*="c-card--ghost"]
is purged even with a greedy selector of/^c-card/
Environment
OS: macOS
Node: 16
Package: purgecss@4.1.3
Add any other context about the problem here
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: