Skip to content

fonts not getting applied in production build #3854

Answered by olets
hrahul2605 asked this question in Help
Discussion options

You must be logged in to vote

Some ideas:

Could be something about the font files. Is Merriwether available in the production build?

Could be something about the cascade. Don't know what your font-display- classes do. If you remove them is it still Poppins?

Could be PurgeCSS. When using a dynamic class like font-${family} there's no guarantee that the class will be included in the production stylesheet. https://tailwindcss.com/docs/optimizing-for-production#writing-purgeable-html

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hrahul2605
Comment options

@olets
Comment options

Answer selected by hrahul2605
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants