The ./.eleventy.js config file for 11ty has become messy and the best way to fix it is to break up its configurations and implementation functions to split into separate modules based on what categories of functionality they define. Create a new top level directory, ./eleventy or ./config/eleventy/ and reference those modules in ./.eleventy.js.
The
./.eleventy.js
config file for 11ty has become messy and the best way to fix it is to break up its configurations and implementation functions to split into separate modules based on what categories of functionality they define. Create a new top level directory,./eleventy
or./config/eleventy/
and reference those modules in./.eleventy.js
.