postcss / postcss-calc

PostCSS plugin to reduce calc()
MIT License
212 stars 34 forks source link

Direct CSS input #118

Closed drolsen closed 2 years ago

drolsen commented 3 years ago

Using this plugin as a process chain in POSTCSS configuration is great, however would be even better to be able to pass the plugin some CSS (decl preferable) to parse / reduce as well.

We are building a few internal plugins / methods that allow calc() usage, but would require special handling and being able to parse specifics.

Thanks!

Semigradsky commented 3 years ago

This plugin has used https://github.com/MoOx/reduce-css-calc before, you can try it.

ludofischer commented 2 years ago

I think standalone usage is out of scope, but the project linked in the previous comment does seem to work as a substitute.