Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
(gatsby): Disable sourcemaps to save on hosting space
Browse files Browse the repository at this point in the history
iGEM only gives us 10MB for our site.
Disabling sourcemaps currently saves us ~1.6MB
  • Loading branch information
jcxldn committed Jun 25, 2023
1 parent f33ccaa commit 16cf123
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const config: GatsbyConfig = {
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`, // Needed for dynamic images
`gatsby-plugin-no-sourcemaps`,
],
};

Expand Down
23 changes: 23 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"bootstrap": "^5.3.0",
"gatsby": "^5.9.1",
"gatsby-plugin-image": "^3.11.0",
"gatsby-plugin-no-sourcemaps": "^5.11.0",
"gatsby-plugin-remote-images": "^3.6.6",
"gatsby-plugin-sharp": "^5.11.0",
"gatsby-source-filesystem": "^5.11.0",
Expand Down

0 comments on commit 16cf123

Please sign in to comment.