chore: wrap conditions around browser apis that cause issues at build time

This commit is contained in:
Kyle Gill
2019-05-14 17:10:39 -06:00
parent d4b9465c49
commit 24a3eb96f2
10 changed files with 563 additions and 44 deletions

View File

@@ -1,7 +1,23 @@
module.exports = {
plugins: [
`gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-emotion`,
},
{
resolve: `gatsby-plugin-create-client-paths`,
options: { prefixes: [`/app/*`] },
},
{
resolve: `gatsby-plugin-prefetch-google-fonts`,
options: {
fonts: [
{
family: `Montserrat`,
variants: [`400`, `700`],
},
],
},
},
],
}