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
esbuild@0.17.0
When two different CSS variables with same value defined in media query, only one of these CSS variables will remain in the minified output.
Input:
@media (prefers-color-scheme: dark) { body { --VAR-1: #000; } } @media (prefers-color-scheme: dark) { body { --VAR-2: #000; } }
esbuild --bundle style.css --outfile=out.css --minify-syntax output:
esbuild --bundle style.css --outfile=out.css --minify-syntax
/* style.css */ @media (prefers-color-scheme: dark) { body { --VAR-2: #000; } }
The text was updated successfully, but these errors were encountered:
Thanks for the report. It looks like this is an old regression from version 0.11.19.
Edit: And it was caused by a dumb typo: RulesEqual(a.Rules, a.Rules) instead of RulesEqual(a.Rules, b.Rules).
RulesEqual(a.Rules, a.Rules)
RulesEqual(a.Rules, b.Rules)
Sorry, something went wrong.
f8c5139
No branches or pull requests
esbuild@0.17.0
When two different CSS variables with same value defined in media query, only one of these CSS variables will remain in the minified output.
Input:
esbuild --bundle style.css --outfile=out.css --minify-syntax
output:The text was updated successfully, but these errors were encountered: