Package Exports
- gatsby-plugin-google-fonts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gatsby-plugin-google-fonts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gatsby-plugin-google-fonts
How to use it ?
yarn add gatsby-plugin-google-fonts
// or
npm install gatsby-plugin-google-fonts --saveAdd some fonts to your gatsby-config.js:
module.exports = {
siteMetadata: {
title: `I like Google fonts`
},
plugins: [
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`limelight`,
`source sans pro\:300,400,400i,700` // you can also specify font weights and styles
],
display: 'swap'
}
}
]
}