From 949b68e04dd8e9d660afd614ad32df6a308137dd Mon Sep 17 00:00:00 2001 From: himeshr Date: Tue, 3 Dec 2024 18:39:43 +0530 Subject: [PATCH] #155 | Discard unused google fonts --- gatsby-config.js | 1 + src/utils/typography.js | 13 +------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 3f464504..fd048967 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -104,6 +104,7 @@ module.exports = { resolve: `gatsby-plugin-typography`, options: { pathToConfigModule: `src/utils/typography`, + omitGoogleFont: true }, }, { diff --git a/src/utils/typography.js b/src/utils/typography.js index 7ce54534..f59b179f 100644 --- a/src/utils/typography.js +++ b/src/utils/typography.js @@ -2,19 +2,8 @@ import Typography from "typography" const typography = new Typography({ baseFontSize: "14px", baseLineHeight: 1.666, - googleFonts: [ - { - name: 'Muli', - styles: [ - '900', - '900i', - '400', - '200', - ] - } - ], + googleFonts: [], headerFontFamily: [ - "Muli", "Helvetica Neue", "Segoe UI", "Helvetica",