Defining the 11ty Config is an important piece for 11ty to know things like:
module.exports = function (eleventyConfig) {
return {
templateFormats: ['njk'],
dir: {
input: "src",
output: "dist",
includes: "_includes"
},
htmlTemplateEngine: "njk",
dataTemplateEngine: "njk"
}
}
Netlify gives us a couple of options for how we configure our projects:
netlify.toml
fileFor us, we’re going to lean on the toml
file for the couple things Netlify needs to know about:
[build]
command = "npm run build"
publish = "dist"
[functions]
directory = "/netlify/functions"