From 442cb8fe971ac3c3ab8a25e1c57de2202d9c1a5d Mon Sep 17 00:00:00 2001 From: saicaca Date: Fri, 26 Jul 2024 23:06:55 +0800 Subject: [PATCH] chore: ignore errors when CSS files don't need compression --- astro.config.mjs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 1257656..4eb8a67 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -53,11 +53,15 @@ export default defineConfig({ "fa6-solid": ["*"], }, }), - Compress({ - Image: false, - }), svelte(), sitemap(), + Compress({ + CSS: false, + Image: false, + Action: { + Passed: async () => true, // https://github.com/PlayForm/Compress/issues/376 + }, + }), ], markdown: { remarkPlugins: [remarkMath, remarkReadingTime, remarkGithubAdmonitionsToDirectives, remarkDirective, parseDirectiveNode],