From ac886f1aef883c8ad7006f42a936ef577bdac6d0 Mon Sep 17 00:00:00 2001 From: viphan007 Date: Tue, 17 Sep 2024 11:40:41 +0700 Subject: [PATCH] Improve build speed --- gatsby-config.js | 1 - package.json | 3 +- .../Contentful/ContentfulLayoutFooter.js | 8 +- .../Contentful/ContentfulLayoutHeader.js | 8 +- src/components/Footer.js | 28 +- src/components/Header.js | 62 +-- src/components/Link.js | 19 +- .../PortfolioPage/Layout/PortfolioFooter.js | 10 +- .../PortfolioPage/Layout/PortfolioHeader.js | 15 +- src/components/layout.scss | 12 - src/fragments/ContentfulContent.js | 14 - yarn.lock | 410 +++++++++--------- 12 files changed, 264 insertions(+), 326 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 204aec7f05e..452007f34fe 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -38,7 +38,6 @@ if (env.errors) { 'gatsby-transformer-sharp', 'gatsby-transformer-remark', 'gatsby-plugin-root-import', - 'gatsby-transformer-inline-svg', { resolve: `gatsby-source-contentful`, options: { diff --git a/package.json b/package.json index 87209a50a2b..4a6788d4c25 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,6 @@ "gatsby-plugin-well-known": "^1.0.0", "gatsby-source-contentful": "^8.13.2", "gatsby-source-filesystem": "^5.0.0", - "gatsby-transformer-inline-svg": "^1.1.0", "gatsby-transformer-remark": "^6.9.0", "gatsby-transformer-sharp": "^5.12.3", "gl-matrix": "^3.4.3", @@ -95,7 +94,7 @@ "jest": "^29.7.0", "p-whilst": "^2.0.0", "prettier": "^1.15.2", - "puppeteer": "^21.7.0", + "puppeteer": "^23.3.1", "stylelint": "^14.16.1", "stylelint-config-property-sort-order-smacss": "^9.1.0", "stylelint-config-recommended": "^9.0.0", diff --git a/src/components/Contentful/ContentfulLayoutFooter.js b/src/components/Contentful/ContentfulLayoutFooter.js index 9568634f03f..106340ff9c1 100644 --- a/src/components/Contentful/ContentfulLayoutFooter.js +++ b/src/components/Contentful/ContentfulLayoutFooter.js @@ -11,9 +11,6 @@ const ContentfulLayoutFooter = props => { return (