From 7aee4d51484cab4d7ad5b84b4bd636ad280ea1e4 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Mon, 1 Jul 2024 17:20:39 +0700 Subject: [PATCH] Compress CSS --- src/macros/build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/macros/build.ts b/src/macros/build.ts index d37fc7f..4056a0c 100644 --- a/src/macros/build.ts +++ b/src/macros/build.ts @@ -4,6 +4,7 @@ import cssStr from "@assets/css/styles.styl" with { type: "text" }; const generatedCss = await (stylus(cssStr, {}) .set('filename', 'styles.css') + .set('compress', true) .include('src/assets/css/')) .render();