Skip to content

Conversation

@ekatioz
Copy link
Contributor

@ekatioz ekatioz commented Feb 21, 2020

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.

@MadLittleMods MadLittleMods merged commit f92ee48 into MadLittleMods:master Apr 24, 2020
MadLittleMods added a commit that referenced this pull request Apr 24, 2020
@MadLittleMods
Copy link
Owner

Thanks for the contribution @ekatioz! Sorry for the delay ❤️

This is now part of v0.16.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants