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
&
It looks like nested css adds extra & characters, which are not needed. I'm using NPM version 1.28.2 of the lightningcss package.
1.28.2
const { transform } = require("lightningcss"); let css = ` .outer { color: red; .inner { color: blue; } .another-inner { color: black; } }`; let { code } = transform({ code: Buffer.from(css), minify: true, sourceMap: false }); console.log(code.toString());
This outputs:
.outer{color:red;& .inner{color:#00f}& .another-inner{color:#000}}
When I prettify it, we'll get:
.outer { color: red; & .inner { color: #00f } & .another-inner { color: #000 } }
Why are the &-characters added? I think they might not be needed.
The text was updated successfully, but these errors were encountered:
It used to be required, refer to "Partial support" notes on https://issues.chromium.org/40261706 or the specific Chromium issue https://issues.chromium.org/issues/40261706
Sorry, something went wrong.
No branches or pull requests
It looks like nested css adds extra
&
characters, which are not needed. I'm using NPM version1.28.2
of the lightningcss package.This outputs:
When I prettify it, we'll get:
Why are the
&
-characters added? I think they might not be needed.The text was updated successfully, but these errors were encountered: