This commit refactors the project's directory structure to better align with a static site generator (SSG) workflow. The source files have been moved into a dedicated src directory, and Eleventy has been installed as the new SSG.
15 lines
434 B
JavaScript
15 lines
434 B
JavaScript
module.exports = function (eleventyConfig) {
|
|
// ✅ Pass through static assets to the root of output
|
|
eleventyConfig.addPassthroughCopy({ "src/images": "images" });
|
|
eleventyConfig.addPassthroughCopy({ "src/styles": "styles" });
|
|
eleventyConfig.addPassthroughCopy({ "src/scripts": "scripts" });
|
|
|
|
return {
|
|
dir: {
|
|
input: "src",
|
|
output: "_site",
|
|
includes: "_includes",
|
|
},
|
|
};
|
|
};
|