We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda7e1e commit 1625535Copy full SHA for 1625535
src/config/passthroughs.js
@@ -12,4 +12,19 @@ export default {
12
13
eleventyConfig.addPassthroughCopy(config);
14
},
15
+
16
+ /**
17
+ * Copy images to the `public` directory
18
+ *
19
+ * Note: Images directly associated with content should be saved
20
+ * in the `src/content` directory alongside the content file where
21
+ * HTML transforms will optimize them automatically.
22
23
+ * https://www.11ty.dev/docs/plugins/image/#html-transform
24
+ */
25
+ images: async function (eleventyConfig) {
26
+ let config = { 'src/assets/images': 'assets/images' }
27
28
+ eleventyConfig.addPassthroughCopy(config);
29
+ }
30
};
0 commit comments