Closed ivodolenc closed 1 year ago
fontLoader.logs
local.fallback
external.fallback
To load fonts directly from third-party servers use external option.
external
The module will automatically detect servers and preload sources accordingly so you don't have to worry about it.
// nuxt.config.ts { fontLoader: { external: [ { src: 'https://fonts.googleapis.com/css2?family=Inter&display=swap', family: 'Inter', class: 'font-inter' // optional } ] } }
Types of Changes
Additional Details
fontLoader.logs
option to manage all terminal logslocal.fallback
&external.fallback
options to define the font family fallback.Request Description
External Strategy
To load fonts directly from third-party servers use
external
option.The module will automatically detect servers and preload sources accordingly so you don't have to worry about it.