new font loader

This commit is contained in:
gillkyle
2021-04-24 12:22:01 -06:00
parent 33a4b394d8
commit d2507dc8ae
9 changed files with 38 additions and 123 deletions

View File

@@ -8,16 +8,24 @@ module.exports = {
options: { prefixes: [`/app/*`] },
},
// provide fonts from Google fonts
// {
// resolve: `gatsby-plugin-prefetch-google-fonts`,
// options: {
// fonts: [
// {
// family: `Montserrat`,
// variants: [`400`, `700`],
// },
// ],
// },
// },
{
resolve: `gatsby-plugin-prefetch-google-fonts`,
resolve: 'gatsby-plugin-web-font-loader',
options: {
fonts: [
{
family: `Montserrat`,
variants: [`400`, `700`],
},
],
},
google: {
families: ['Montserrat:400,700']
}
}
},
// plugins for PWA support
`gatsby-plugin-offline`,