From 606a7f6b1e4acca0160c7af789a05771bc66bddd Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Thu, 19 Mar 2026 15:02:49 +0100 Subject: [PATCH] fix: use glob patterns for Lora passthrough copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Individual file → "fonts" mappings were treated as a single output file path, causing a conflict. Use glob patterns (like Inter) so Eleventy treats the destination as a directory. Co-Authored-By: Claude Sonnet 4.6 --- eleventy.config.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/eleventy.config.js b/eleventy.config.js index 32f54fc..9e49bc9 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -527,14 +527,10 @@ export default function (eleventyConfig) { }); // Copy Lora font files (latin + latin-ext, weights 400/700, normal + italic) eleventyConfig.addPassthroughCopy({ - "node_modules/@fontsource/lora/files/lora-latin-400-normal.woff2": "fonts", - "node_modules/@fontsource/lora/files/lora-latin-ext-400-normal.woff2": "fonts", - "node_modules/@fontsource/lora/files/lora-latin-400-italic.woff2": "fonts", - "node_modules/@fontsource/lora/files/lora-latin-ext-400-italic.woff2": "fonts", - "node_modules/@fontsource/lora/files/lora-latin-700-normal.woff2": "fonts", - "node_modules/@fontsource/lora/files/lora-latin-ext-700-normal.woff2": "fonts", - "node_modules/@fontsource/lora/files/lora-latin-700-italic.woff2": "fonts", - "node_modules/@fontsource/lora/files/lora-latin-ext-700-italic.woff2": "fonts", + "node_modules/@fontsource/lora/files/lora-latin-400-*.woff2": "fonts", + "node_modules/@fontsource/lora/files/lora-latin-700-*.woff2": "fonts", + "node_modules/@fontsource/lora/files/lora-latin-ext-400-*.woff2": "fonts", + "node_modules/@fontsource/lora/files/lora-latin-ext-700-*.woff2": "fonts", }); // Watch for content changes