This repository has been archived on 2024-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
alfadatizar/eleventy.config.js
Cat /dev/Nulo 85cb916369
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
metadatos
2023-08-05 17:31:45 -03:00

31 lines
892 B
JavaScript

/**
* @param {import("@11ty/eleventy").UserConfig} eleventyConfig
*/
module.exports = function (eleventyConfig) {
eleventyConfig.setServerOptions({
watch: ["src/**/*.css"],
});
eleventyConfig.addWatchTarget("src/");
eleventyConfig.addWatchTarget("tailwind.config.js");
eleventyConfig.addShortcode("tailwind", async () => {
const from = "src/tailwind.css";
return await postcss.process(await readFile(from, "utf-8"), { from });
});
eleventyConfig.addPassthroughCopy("src/**/*.png");
eleventyConfig.addPassthroughCopy("src/**/*.webp");
eleventyConfig.addPassthroughCopy("src/**/*.woff");
eleventyConfig.addPassthroughCopy("src/**/*.woff2");
eleventyConfig.addPassthroughCopy("src/assets/img/**/*.svg");
eleventyConfig.addExtension(["11ty.jsx", "11ty.ts", "11ty.tsx"], {
key: "11ty.js",
});
return {
dir: {
input: "src",
},
};
};