Skip to content

Commit

Permalink
chore(site): add gatsby-plugin-sri
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoosocool committed Dec 5, 2023
1 parent d8bd2a0 commit d7032f8
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/site/gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ const config: GatsbyConfig = {
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-postcss',
{
resolve: 'gatsby-plugin-sri',
options: {
hash: 'sha512',
crossorigin: false,
},
},
{
resolve: `gatsby-plugin-env-variables`,
options: {
Expand Down
1 change: 1 addition & 0 deletions packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"gatsby-plugin-image": "^3.12.3",
"gatsby-plugin-postcss": "^6.12.0",
"gatsby-plugin-sharp": "^5.12.3",
"gatsby-plugin-sri": "^1.1.0",
"gatsby-source-filesystem": "^5.12.1",
"gatsby-transformer-sharp": "^5.12.3",
"lucide-react": "^0.290.0",
Expand Down
26 changes: 25 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13501,6 +13501,16 @@ __metadata:
languageName: node
linkType: hard

"gatsby-plugin-sri@npm:^1.1.0":
version: 1.1.0
resolution: "gatsby-plugin-sri@npm:1.1.0"
dependencies:
glob: ^7.1.6
replace-in-file: ^5.0.2
checksum: f15fdded0103ebdada62be0fbf2cf03c790470855290977d50cf6399830506dd631184749301d64b1082730be970936c418c9569c4fbfdb77947e595c0488287
languageName: node
linkType: hard

"gatsby-plugin-typescript@npm:^5.12.1":
version: 5.12.1
resolution: "gatsby-plugin-typescript@npm:5.12.1"
Expand Down Expand Up @@ -20550,6 +20560,19 @@ __metadata:
languageName: node
linkType: hard

"replace-in-file@npm:^5.0.2":
version: 5.0.2
resolution: "replace-in-file@npm:5.0.2"
dependencies:
chalk: ^3.0.0
glob: ^7.1.6
yargs: ^15.0.2
bin:
replace-in-file: ./bin/cli.js
checksum: a807493678fcee073c988e6ee871cef84eb09fb30502591650f62229d584978e61822923d1aa7145fc74b1e6420e9294b3aee181cf783e1f296b4e30347077c6
languageName: node
linkType: hard

"require-directory@npm:^2.1.1":
version: 2.1.1
resolution: "require-directory@npm:2.1.1"
Expand Down Expand Up @@ -21328,6 +21351,7 @@ __metadata:
gatsby-plugin-manifest: ^5.12.3
gatsby-plugin-postcss: ^6.12.0
gatsby-plugin-sharp: ^5.12.3
gatsby-plugin-sri: ^1.1.0
gatsby-source-filesystem: ^5.12.1
gatsby-transformer-sharp: ^5.12.3
lucide-react: ^0.290.0
Expand Down Expand Up @@ -24100,7 +24124,7 @@ __metadata:
languageName: node
linkType: hard

"yargs@npm:^15.3.1, yargs@npm:^15.4.1":
"yargs@npm:^15.0.2, yargs@npm:^15.3.1, yargs@npm:^15.4.1":
version: 15.4.1
resolution: "yargs@npm:15.4.1"
dependencies:
Expand Down

0 comments on commit d7032f8

Please sign in to comment.