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
Some css pre-processors don't have a way to import keyframes only once so you end up with duplicates all over the place.
Related: https://github.com/LearnBoost/stylus/issues/1579
The text was updated successfully, but these errors were encountered:
Yep. Consider:
let css = ` @keyframes progress-bar-stripes { 0% { background-position: 40px 0 } to { background-position: 0 0 } } @keyframes progress-bar-stripes { 0% { background-position: 40px 0 } to { background-position: 0 0 } } ` const minifiedCss = csso.minify(css).css console.log(minifiedCss);
This yields
@keyframes progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}
Sorry, something went wrong.
Actually, in this commit it does say "remove duplicate (with the same name) keyframes (keep last one)".
So once that feature is released, we can close this. Right?
Yes, you're right. Thank you for pointing on this issue.
v3.2.0 fixed the issue.
No branches or pull requests
Some css pre-processors don't have a way to import keyframes only once so you end up with duplicates all over the place.
Related: https://github.com/LearnBoost/stylus/issues/1579
The text was updated successfully, but these errors were encountered: