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

fix(optimize-css): do not remove custom @font rules #66

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Jul 28, 2024

Fixes #65

Currently, preserveAllIBMFonts: false (the default configuration), will remove non-product IBM @font-face rules. However, it also unintentionally removes custom @font-face rules.

The fix is to first check that the rule-to-remove is actually IBM Plex.

@metonym metonym merged commit 6157e1a into main Jul 28, 2024
1 check passed
@metonym metonym deleted the fix-remove-custom-font-rules branch July 28, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

optimizeCss({preserveAllIBMFonts: false}) removes all the fonts including the custom ones.
1 participant