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

Minify option true, remove css svg properties #59

Open
arieffikhrie opened this issue Mar 8, 2023 · 0 comments
Open

Minify option true, remove css svg properties #59

arieffikhrie opened this issue Mar 8, 2023 · 0 comments

Comments

@arieffikhrie
Copy link

Setting up minify option to true removing svg properties cx, cy, r.

I think this behaviour coming from clean-css@v4 package

var CleanCSS = require('clean-css');
var input = `
  .test {
    cx: 0.5em;
    cy: 0.5em;
    fill: none;
    r: 0.2em;
  }
`;
var options = { /* options */ };
var output = new CleanCSS(options).minify(input);

console.log(output.styles);

By changing it to clean-css version 5, should fix this issue

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