-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheleventy.config.js
More file actions
33 lines (28 loc) · 853 Bytes
/
Copy patheleventy.config.js
File metadata and controls
33 lines (28 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module.exports = function(eleventyConfig) {
//We use just the app.js name when in dev mode but a hashed name for cache-busting in prod
eleventyConfig.addGlobalData("isDev", process.env.ELEVENTY_RUN_MODE === "serve");
//Note 11ty doesn't support a recursive copy to a target directory (with a different name) so images are stored in the img folder
eleventyConfig.addPassthroughCopy({"assets/**": "./"});
eleventyConfig.addPassthroughCopy("img");
eleventyConfig.addPassthroughCopy("files");
eleventyConfig.setServerOptions({
liveReload: true,
watch: ["./dist/**/*"]
});
};
module.exports.config = {
templateFormats: [
"md",
"njk",
"html",
"11ty.js",
],
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk",
dir: {
input: "src/html",
includes: "_includes",
data: "_data",
output: "dist"
}
};