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
I have 2 css files that i pass to purgeCSS
:root { --used-in-other-css-file: red; }
.button { color: var(--used-in-other-css-file) }
Depending on the order in the array of files i pass to purgeCss either my variable is removed or not.
If i pass variable file then class file, then variable is removed. If i pass class file then variable file, my variable is preserved.
Here is a git patch on this repo to reproduce the issue via tests Changes-On-b8bb2a.patch
my variable is always preserved
6.0.0 purgecss nodejs env
The text was updated successfully, but these errors were encountered:
This is also the case when the variable is referenced in content, for example, a JavaScript file might read a variable's value.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I have 2 css files that i pass to purgeCSS
:root { --used-in-other-css-file: red; }
.button { color: var(--used-in-other-css-file) }
Depending on the order in the array of files i pass to purgeCss either my variable is removed or not.
If i pass variable file then class file, then variable is removed.
If i pass class file then variable file, my variable is preserved.
To Reproduce
Here is a git patch on this repo to reproduce the issue via tests
Changes-On-b8bb2a.patch
Expected Behavior
my variable is always preserved
Environment
6.0.0 purgecss
nodejs env
Code of Conduct
The text was updated successfully, but these errors were encountered: