Open theseanl opened 2 years ago
In principle I could see this supporting something like that
hi!, @nex3 any update about this? Thanks
I would like to see this as well. Thanks!
Till this plugin adds support for css variable, we can use postcss-variable-compress - npm plugin. I used it with Astro, seems to be working fine.
I've always wished Closure Stylesheets would have such a feature – it could rename css variables and emit it in a call
goog.setCssNameMapping
just like other class names, so that one can modify its value in JS via something likeelement.style.setProperty(goog.getCssName("--my-variable"), "#fff")
. Would such a feature be in the scope of this project?