implement scss. begin work on styling
This commit is contained in:
parent
af0f3e6268
commit
c2595ed3f2
8 changed files with 501 additions and 39 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue