Eleventy Configuration

The content on this page is created by you in group sessions. The questions are provided by Prof Stein and the answers by students.

What do Configuration (config) files do? What is their role in the Build Process?

Configuration files use Javascript to root directory of a project to configure Eleventy to a person’s own project’s needs. Their role is to control the whole process. Without them, nothing will render.

What are the two main config files?

1) .elevanty.js

2) package.json

What Language are the config files written in?

YAML, Markdown, HTML, and Nunjucks

Bonus: what are other config files in an 11ty project?

Everything outside of a folder are config files. Examples: .eleventy.js, package-lock.json, package.json, .gitignore

Resources

https://miro.com/app/board/o9J_lq6P2Hc=/

https://miro.com/app/board/o9J_lP-OD6A=/

https://www.11ty.dev/docs/config/

Leave a comment