Andy-set-studio / learneleventyfromscratch.com

In this Eleventy course, we go from a completely empty directory to a full-blown marketing site for a design agency, and along the way, we dive really deep into Eleventy and front-end development best practices.
https://learneleventyfromscratch.com/
120 stars 28 forks source link

Lesson 2 - Eleventy Config File #42

Open BPowell76 opened 3 months ago

BPowell76 commented 3 months ago

To match the information on the eleventy site, the base config file should be as shown below. The directory name is irrelevant, but the lambda expression is replaced with a function call.

module.exports = function (eleventyConfig) {
     return {
          dir: {
               input: "src",
               output: "_site",
          },
     };
};