chore: remove debug logs
This commit is contained in:
parent
11cc156661
commit
53f2ce599a
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue