fix: use glob patterns for Lora passthrough copy
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 <noreply@anthropic.com>
This commit is contained in:
+4
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user