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

Add conditional preservation behavior #116

Merged
merged 7 commits into from Apr 24, 2020
Merged

Add conditional preservation behavior #116

merged 7 commits into from Apr 24, 2020

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.

None yet

2 participants