font-family
usage in your CSS and injects optimized @font-face
declarations.Add the fontless
plugin to your Vite configuration:
Simply use fonts in your CSS as you normally would, and fontless
will handle optimization:
You can customize fontless
with various options:
Fontless
works by:
font-family
declarations.@font-face
declarations with proper metrics.corepack enable
pnpm install
pnpm dev
Made with ❤️
Published under MIT License.