Closed ekatioz closed 4 years ago
My goal was to give the user a more granular controll over the preservation behavior.
Initially I needed to find a way to preserve colors and fonts, but don't preserve URLs. Relative URLs are resolved differently in Safari and Chrome.
Now the user could define a callback for the "preserve" option: cssvariables({ preserve: decl => shouldPreserve(decl) })
cssvariables({ preserve: decl => shouldPreserve(decl) })
I would be open and grateful for suggestions for improvement.
Thanks for the contribution @ekatioz! Sorry for the delay ❤️
This is now part of v0.16.0 🚀
My goal was to give the user a more granular controll over the preservation behavior.
Initially I needed to find a way to preserve colors and fonts, but don't preserve URLs. Relative URLs are resolved differently in Safari and Chrome.
Now the user could define a callback for the "preserve" option:
cssvariables({ preserve: decl => shouldPreserve(decl) })
I would be open and grateful for suggestions for improvement.