chore: remove debug logs

This commit is contained in:
Dennis Paulus 2024-02-04 14:42:39 +01:00
parent 11cc156661
commit 53f2ce599a

View file

@ -84,8 +84,6 @@ function buildMarkdownPages() {
) )
).toString(); ).toString();
console.log(markdown);
const result = template({ const result = template({
...getData(), ...getData(),
markdown, markdown,
@ -122,15 +120,11 @@ function buildStyles() {
if (!fs.existsSync("./build/styles")) fs.mkdirSync("./build/styles"); if (!fs.existsSync("./build/styles")) fs.mkdirSync("./build/styles");
if (!fs.existsSync("./sass")) return; if (!fs.existsSync("./sass")) return;
fs.readdirSync("./sass").forEach((file) => { fs.readdirSync("./sass").forEach((file) => {
console.log(1);
if (!(file.endsWith(".scss") || file.endsWith(".sass"))) return; if (!(file.endsWith(".scss") || file.endsWith(".sass"))) return;
console.log(2);
if (file.startsWith("_")) return; if (file.startsWith("_")) return;
console.log(3);
const result = sass.compile(`./sass/${file}`, { const result = sass.compile(`./sass/${file}`, {
style: "compressed", style: "compressed",
}); });
console.log(4);
fs.writeFileSync("./build/styles/styles.css", result.css); fs.writeFileSync("./build/styles/styles.css", result.css);
}); });
} }