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

Include ghost hook to statically export fonts #5553

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

estrattonbailey
Copy link
Member

We use expo export when building for OTA updates. The although the expo-font plugin works for production builds, the export CLI command does not use the plugin config, and therefore does not output our font files for use in the OTA bundle.

The useFonts hook here ensures that the fonts are exported for native OTA, even though it is not otherwise used.

@arcalinea arcalinea temporarily deployed to fonts-build - social-app PR #5553 October 1, 2024 18:53 — with Render Destroyed
Copy link

github-actions bot commented Oct 1, 2024

Old size New size Diff
7.9 MB 7.92 MB 14.96 KB (0.18%)

Copy link
Contributor

@haileyok haileyok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe should report it upstream too, curious as to why the build plugin isn't handling this.

@estrattonbailey estrattonbailey merged commit 5a98ea6 into main Oct 1, 2024
6 checks passed
@estrattonbailey
Copy link
Member Author

Gonna merge this for now to test, will update further if we hear back from Expo

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.

3 participants