Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2aa5a7

Browse files
committed
Add Subresource Integrity support
1 parent 58e4765 commit e2aa5a7

File tree

3 files changed

+1883
-1
lines changed

3 files changed

+1883
-1
lines changed

gatsby-config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ module.exports = {
1616
name: "docs",
1717
},
1818
},
19+
{
20+
resolve: 'gatsby-plugin-sri',
21+
options: {
22+
hash: 'sha384'
23+
},
24+
},
1925
{
2026
resolve: `gatsby-plugin-google-analytics`,
2127
options: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"gatsby-plugin-sass": "^1.0.25",
1313
"gatsby-plugin-sharp": "^1.6.42",
1414
"gatsby-plugin-sitemap": "^1.2.23",
15+
"gatsby-plugin-sri": "^1.0.3",
1516
"gatsby-remark-images": "^1.5.61",
1617
"gatsby-source-filesystem": "^1.5.32",
1718
"gatsby-transformer-remark": "^1.7.40",

0 commit comments

Comments
 (0)