feat: Add noreferrer plugin

This commit is contained in:
marleyrae 2023-06-21 12:13:56 -07:00
parent 2074751fab
commit 1be374c912
3 changed files with 72 additions and 46 deletions

View file

@ -9,6 +9,11 @@ module.exports = function (eleventyConfig) {
]), ]),
}) })
// Add noopener to links
eleventyConfig.addPlugin(require('eleventy-plugin-automatic-noopener'), {
noreferrer: true,
})
// Copy CSS assets // Copy CSS assets
eleventyConfig.addPassthroughCopy('src/style/assets') eleventyConfig.addPassthroughCopy('src/style/assets')

20
package-lock.json generated
View file

@ -11,6 +11,7 @@
"dependencies": { "dependencies": {
"@11ty/eleventy-plugin-vite": "^4.0.0", "@11ty/eleventy-plugin-vite": "^4.0.0",
"alpinejs": "^3.12.2", "alpinejs": "^3.12.2",
"eleventy-plugin-automatic-noopener": "^2.0.2",
"eleventy-sass": "^2.2.1", "eleventy-sass": "^2.2.1",
"esbuild": "0.17.19" "esbuild": "0.17.19"
}, },
@ -2587,6 +2588,25 @@
"integrity": "sha512-jdie3RiEgygvDTyS2sgjq71B36q2cDSBfPlwzUyuOrfYTNoYWyBxxjGJV/HAu3A2hB0Y+HesvCVkVAFoCKwCSw==", "integrity": "sha512-jdie3RiEgygvDTyS2sgjq71B36q2cDSBfPlwzUyuOrfYTNoYWyBxxjGJV/HAu3A2hB0Y+HesvCVkVAFoCKwCSw==",
"dev": true "dev": true
}, },
"node_modules/eleventy-plugin-automatic-noopener": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/eleventy-plugin-automatic-noopener/-/eleventy-plugin-automatic-noopener-2.0.2.tgz",
"integrity": "sha512-uMHHAG7SUwiuNTd1yPTe8ijIjyTghV9JVXJ/vOUdbu+r3O0aJJ3ARsKAz83GMdSFivrY4XOnenlCOXeovGNBQw==",
"dependencies": {
"posthtml": "^0.16.0"
},
"engines": {
"node": ">=12.0.0"
},
"peerDependencies": {
"@11ty/eleventy": "*"
},
"peerDependenciesMeta": {
"@11ty/eleventy": {
"optional": true
}
}
},
"node_modules/eleventy-sass": { "node_modules/eleventy-sass": {
"version": "2.2.1", "version": "2.2.1",
"resolved": "https://registry.npmjs.org/eleventy-sass/-/eleventy-sass-2.2.1.tgz", "resolved": "https://registry.npmjs.org/eleventy-sass/-/eleventy-sass-2.2.1.tgz",

View file

@ -30,6 +30,7 @@
"dependencies": { "dependencies": {
"@11ty/eleventy-plugin-vite": "^4.0.0", "@11ty/eleventy-plugin-vite": "^4.0.0",
"alpinejs": "^3.12.2", "alpinejs": "^3.12.2",
"eleventy-plugin-automatic-noopener": "^2.0.2",
"eleventy-sass": "^2.2.1", "eleventy-sass": "^2.2.1",
"esbuild": "0.17.19" "esbuild": "0.17.19"
} }