Skip to content

Commit 7e07dd4

Browse files
committed
Update passthrough copy configuration in Eleventy to use object syntax for improved clarity and maintainability.
1 parent a34a026 commit 7e07dd4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.eleventy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* @returns {import("@11ty/eleventy").EleventyReturnValue}
55
*/
66
module.exports = (eleventyConfig) => {
7-
eleventyConfig.addPassthroughCopy("styles.css");
8-
eleventyConfig.addPassthroughCopy("*.png");
9-
eleventyConfig.addPassthroughCopy(".well-known");
10-
eleventyConfig.addPassthroughCopy("CNAME");
7+
eleventyConfig.addPassthroughCopy({ "../styles.css": "styles.css" });
8+
eleventyConfig.addPassthroughCopy({ "../*.png": "." });
9+
eleventyConfig.addPassthroughCopy({ "../.well-known": ".well-known" });
10+
eleventyConfig.addPassthroughCopy({ "../CNAME": "CNAME" });
1111

1212
eleventyConfig.setServerOptions({
1313
port: 3000

0 commit comments

Comments
 (0)