Skip to content
New issue

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

Border css variable properties are incorrectly removed #32

Open
TychoA opened this issue Feb 25, 2021 · 0 comments
Open

Border css variable properties are incorrectly removed #32

TychoA opened this issue Feb 25, 2021 · 0 comments

Comments

@TychoA
Copy link

TychoA commented Feb 25, 2021

See the following script:
const less = require('less'); const plugin = require('less-plugin-clean-css'); const P = new plugin({ advanced: true }); const input = '.class {border: 1px solid var(--foo, var(--bar));}'; less.render(input, { plugins: [P] }).then(console.log);
Outputs
{ css: '.class{border:1px solid}', imports: [] }
While it should be
{ css: '.class{border:1px solid var(--foo, var(--bar));}', imports: [] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant