purgecss
purgecss copied to clipboard
PurgeCss does not recognize keyframes that used as CSS custom properties (variables) value
PurgeCss deletes the keyframe even though it is used;
.component {
animation: var(--component-animation)
}
.component--animated {
--component-animation: fadeIn 0.4s;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
This might be related to this https://github.com/FullHuman/purgecss/issues/518 issue.