-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eleventy.js
39 lines (37 loc) · 944 Bytes
/
.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
32
33
34
35
36
37
38
39
// module.exports = function(eleventyConfig) {
// // Pass through static assets
// eleventyConfig.addPassthroughCopy('src/assets');
// eleventyConfig.setTemplateFormats([
// "css",
// "js",
// "njk"
// ]);
// return {
// // Input directory
// dir: {
// data: '_data',
// input: 'src',
// output: '_site'
// },
// passthroughFileCopy: true
// };
// };
module.exports = eleventyConfig => {
// copy js uncompiled
eleventyConfig.addPassthroughCopy({'src/_js': 'js'});
// copy js uncompiled
eleventyConfig.addPassthroughCopy({'src/_css': 'css'});
// copy js uncompiled
eleventyConfig.addPassthroughCopy({'src/_assets': 'assets'});
return {
templateFormats: ['html', 'njk'],
markdownTemplateEngine: 'njk',
pathPrefix: '/',
dir: {
input: "src",
output: "_site",
includes: "_includes",
data: "_data",
}
}
}