Add lucide icons with 11ty plugin

This commit is contained in:
TheThomaas 2025-05-01 11:03:10 +02:00
parent 23cdb87275
commit 5f47e9b087
3 changed files with 81 additions and 2 deletions

View file

@ -1,4 +1,5 @@
import { inspect } from "util";
import pluginIcons from 'eleventy-plugin-icons';
export default async function (eleventyConfig) {
eleventyConfig.setUseGitIgnore(false);
@ -27,6 +28,10 @@ export default async function (eleventyConfig) {
eleventyConfig.addPassthroughCopy('src/favicon.ico')
eleventyConfig.addPlugin(pluginIcons, {
sources: [{ name: 'lucide', path: 'node_modules/lucide-static/icons', default: true }]
});
eleventyConfig.addBundle("css");
return {

74
package-lock.json generated
View file

@ -9,7 +9,9 @@
"version": "1.0.0",
"license": "ISC",
"devDependencies": {
"@11ty/eleventy": "^3.0.0"
"@11ty/eleventy": "^3.0.0",
"eleventy-plugin-icons": "^4.5.3",
"lucide-static": "^0.503.0"
}
},
"node_modules/@11ty/dependency-tree": {
@ -904,6 +906,22 @@
"dev": true,
"license": "MIT"
},
"node_modules/eleventy-plugin-icons": {
"version": "4.5.3",
"resolved": "https://registry.npmjs.org/eleventy-plugin-icons/-/eleventy-plugin-icons-4.5.3.tgz",
"integrity": "sha512-vzMCeQKZ3sS9wWXqVBzqVcM0Zwg0CpCmWMBvhufeNTLkQD/eiokAdMXafW612oVOuiExT/sAdXEMi4aG9idpug==",
"dev": true,
"dependencies": {
"fast-xml-parser": "^4.4.0",
"just-extend": "^6.2.0",
"just-memoize": "^2.2.0",
"just-typeof": "^3.2.0",
"kleur": "^4.1.5"
},
"engines": {
"node": ">=16.20.2"
}
},
"node_modules/emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
@ -1037,6 +1055,24 @@
"node": ">=8.6.0"
}
},
"node_modules/fast-xml-parser": {
"version": "4.5.3",
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.5.3.tgz",
"integrity": "sha512-RKihhV+SHsIUGXObeVy9AXiBbFwkVk7Syp8XgwN5U3JV416+Gwp/GO9i0JYKmikykgz/UHRrrV4ROuZEo/T0ig==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/NaturalIntelligence"
}
],
"dependencies": {
"strnum": "^1.1.1"
},
"bin": {
"fxparser": "src/cli/cli.js"
}
},
"node_modules/fastq": {
"version": "1.15.0",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",
@ -1403,6 +1439,24 @@
"node": ">=0.10.0"
}
},
"node_modules/just-extend": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/just-extend/-/just-extend-6.2.0.tgz",
"integrity": "sha512-cYofQu2Xpom82S6qD778jBDpwvvy39s1l/hrYij2u9AMdQcGRpaBu6kY4mVhuno5kJVi1DAz4aiphA2WI1/OAw==",
"dev": true
},
"node_modules/just-memoize": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/just-memoize/-/just-memoize-2.2.0.tgz",
"integrity": "sha512-zriv+MY+61RXT0QsrO1ZJtL5umouqqSWmCGBkp2wJm35kniunBAA4qhUKx8Lvg/QcwrF9xuw9E6PkevKFf4boQ==",
"dev": true
},
"node_modules/just-typeof": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/just-typeof/-/just-typeof-3.2.0.tgz",
"integrity": "sha512-nOKazfzrQDEGNwXPfWEB64QD+ATZUnpOTJn0xMnCk41p297P9Emt3BlsRyWbu+CErMjopnFTGcYHJnvFX97ZIQ==",
"dev": true
},
"node_modules/kind-of": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
@ -1466,6 +1520,12 @@
"dev": true,
"license": "ISC"
},
"node_modules/lucide-static": {
"version": "0.503.0",
"resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-0.503.0.tgz",
"integrity": "sha512-uwuom0ibobQx1yxuCnuR9X1sai8WcyT+qdw4Na4NOMoCLbhuEAsWAlwKjr0fdMgWgNzh3Z6pMgVtSo1MwlDe9A==",
"dev": true
},
"node_modules/luxon": {
"version": "3.6.1",
"resolved": "https://registry.npmjs.org/luxon/-/luxon-3.6.1.tgz",
@ -2158,6 +2218,18 @@
"node": ">=0.10.0"
}
},
"node_modules/strnum": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/strnum/-/strnum-1.1.2.tgz",
"integrity": "sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/NaturalIntelligence"
}
]
},
"node_modules/to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",

View file

@ -12,6 +12,8 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@11ty/eleventy": "^3.0.0"
"@11ty/eleventy": "^3.0.0",
"eleventy-plugin-icons": "^4.5.3",
"lucide-static": "^0.503.0"
}
}