fix: styles exporting

This commit is contained in:
Dennis Paulus 2024-02-04 14:44:02 +01:00
parent c6496ab7a3
commit 32da995777

View file

@ -125,6 +125,9 @@ function buildStyles() {
const result = sass.compile(`./sass/${file}`, { const result = sass.compile(`./sass/${file}`, {
style: "compressed", style: "compressed",
}); });
fs.writeFileSync("./build/styles/styles.css", result.css); fs.writeFileSync(
`./build/styles/${file.substring(0, file.length - 5)}.css`,
result.css
);
}); });
} }