From 32da995777a48e5eeac58bcd358d44d647d0ba79 Mon Sep 17 00:00:00 2001 From: CRUGG Date: Sun, 4 Feb 2024 14:44:02 +0100 Subject: [PATCH] fix: styles exporting --- build.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.mjs b/build.mjs index 3353606..3071683 100644 --- a/build.mjs +++ b/build.mjs @@ -125,6 +125,9 @@ function buildStyles() { const result = sass.compile(`./sass/${file}`, { style: "compressed", }); - fs.writeFileSync("./build/styles/styles.css", result.css); + fs.writeFileSync( + `./build/styles/${file.substring(0, file.length - 5)}.css`, + result.css + ); }); }