Skip to content

Commit

Permalink
fix: Error: ENOENT: no such file or directory, stat '.cache/google-fo…
Browse files Browse the repository at this point in the history
…nts//fonts'
  • Loading branch information
bhaskarSingh committed Nov 20, 2020
1 parent 7865c87 commit 6dd6b4f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 281 deletions.
29 changes: 0 additions & 29 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,35 +49,6 @@ module.exports = {
icon: `src/assets/theme.svg`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-prefetch-google-fonts`,
options: {
fonts: [
{
family: `Roboto`,
subsets: [`latin`],
variants: [`400`, `500`, `700`],
},
{
family: `Inconsolata`,
subsets: [`latin`],
variants: [`400`, `700`],
},
{
family: `Open Sans`,
variants: [`400`, `700`],
},
{
family: `Sigmar One`,
subsets: [`latin`],
},
{
family: `Inter`,
variants: [`400`, `500`, `700`],
},
],
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
Expand Down
251 changes: 0 additions & 251 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"gatsby-plugin-offline": "^3.0.32",
"gatsby-plugin-page-transitions": "^1.0.8",
"gatsby-plugin-portal": "^1.0.7",
"gatsby-plugin-prefetch-google-fonts": "^1.4.3",
"gatsby-plugin-react-helmet": "^3.1.21",
"gatsby-plugin-react-svg": "^3.0.0",
"gatsby-plugin-sharp": "^2.4.3",
Expand Down
5 changes: 5 additions & 0 deletions src/components/Layout/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ const Layout = ({ children, background }) => {
<html lang="en" />
<title>{title}</title>
<meta name="description" content={description} />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Sigmar+One&display=swap"
rel="stylesheet"
/>
</Helmet>
<main>{children}</main>
</>
Expand Down

0 comments on commit 6dd6b4f

Please sign in to comment.