https://github.com/hupe1980/gatsby-plugin-webfonts
A Gatsby plugin to handle cdn, base64 and self hosted webfonts
https://github.com/hupe1980/gatsby-plugin-webfonts
base64 fonts gatsby-plugin gatsbyjs google-webfonts webfonts
Last synced: 10 months ago
JSON representation
A Gatsby plugin to handle cdn, base64 and self hosted webfonts
- Host: GitHub
- URL: https://github.com/hupe1980/gatsby-plugin-webfonts
- Owner: hupe1980
- License: mit
- Fork: true (taboola/gatsby-plugin-webfonts)
- Created: 2019-05-04T18:11:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-06T03:54:11.000Z (about 3 years ago)
- Last Synced: 2025-09-03T06:45:02.324Z (11 months ago)
- Topics: base64, fonts, gatsby-plugin, gatsbyjs, google-webfonts, webfonts
- Language: JavaScript
- Homepage:
- Size: 2.62 MB
- Stars: 55
- Watchers: 2
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gatsby-plugin-webfonts
> A [Gatsby](https://github.com/gatsbyjs/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
```sh
// with npm
npm install gatsby-plugin-webfonts
// with yarn
yarn add gatsby-plugin-webfonts
```
## Documentation
[The documentation](/gatsby-plugin-webfonts/README.md)
## License
[MIT](LICENSE)