-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eleventy.js
31 lines (28 loc) · 1.11 KB
/
.eleventy.js
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
// file that gets used by 11ty compiling
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
module.exports = function(eleventyConfig){
eleventyConfig.addPassthroughCopy({"src/assets/scss/fonts" : "assets/css/fonts" });
eleventyConfig.addPassthroughCopy({"src/assets/scss/styles-min.css" : "assets/css/styles-min.css" });
eleventyConfig.addPassthroughCopy("src/assets/img/");
eleventyConfig.addPassthroughCopy("src/assets/js/");
eleventyConfig.addPassthroughCopy("src/assets/vendor/");
eleventyConfig.addPassthroughCopy("src/web.config");
eleventyConfig.addWatchTarget("src/assets/scss/");
eleventyConfig.addPlugin(EleventyHtmlBasePlugin, {
// // The base URL: defaults to Path Prefix
//baseHref: "http://localhost:8080/_site/",
//baseHref: "",
extensions: "html",
});
return {
dir: {
input: 'src',
includes: '_includes',
output: '_site',
},
templateFormats: ['md', 'njk', 'html'],
markdownTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
dataTemplateEngine: 'njk',
};
}