hupe1980 / gatsby-plugin-webfonts

A Gatsby plugin to handle cdn, base64 and self hosted webfonts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gatsby-plugin-webfonts

A Gatsby plugin to handle cdn, base64 and self hosted webfonts

  • Creates minified @font-face CSS rules
  • Supports font-display property (Default: 'swap')
  • Handles preconnect and preload optimizations
  • Automatically downloads fonts for self hosting
  • Supports cdn, base64 and self hosted Fonts (Default: 'selfHosted')

Install

// with npm
npm install gatsby-plugin-webfonts

// with yarn
yarn add gatsby-plugin-webfonts

Documentation

The documentation

License

MIT

About

A Gatsby plugin to handle cdn, base64 and self hosted webfonts

License:MIT License


Languages

Language:JavaScript 100.0%