implement scss. begin work on styling

This commit is contained in:
Rik Berkelder 2025-01-28 03:12:25 +01:00
parent af0f3e6268
commit c2595ed3f2
8 changed files with 501 additions and 39 deletions

View file

@ -1,4 +1,19 @@
export default async function (eleventyConfig) { }
import sass from "sass";
export default async function (eleventyConfig) {
eleventyConfig.addTemplateFormats("scss");
eleventyConfig.addExtension("scss", {
outputFileExtension: "css",
compile: async function (inputContent) {
let result = sass.compileString(inputContent);
return async (data) => {
return result.css;
};
}
});
}
export const config = {
dir: {