-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
34 lines (26 loc) · 920 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
// Import transforms
const htmlMinTransform = require('./src/transforms/html-min-transform.js');
module.exports = function(config) {
// Layout aliases
config.addLayoutAlias('home', 'layouts/home.njk');
config.addLayoutAlias('article', 'layouts/article.njk');
// Transforms
config.addTransform('htmlmin', htmlMinTransform);
// Passthrough copy
config.addPassthroughCopy('src/ui/fonts');
config.addPassthroughCopy('src/ui/img');
config.addPassthroughCopy('src/ui/js');
config.addPassthroughCopy('src/ui/css');
// config.addPassthroughCopy('src/admin/config.yml');
// config.addPassthroughCopy('src/admin/previews.js');
// config.addPassthroughCopy('node_modules/nunjucks/browser/nunjucks-slim.js');
config.addPassthroughCopy('src/robots.txt');
config.setUseGitIgnore(false);
return {
dir: {
input: 'src',
output: 'build'
},
passthroughFileCopy: true
};
};