From e193e933762d6875d7acfd8130314bef7ae6a241 Mon Sep 17 00:00:00 2001 From: yaotutu <957810668@qq.com> Date: Sat, 23 Nov 2024 12:12:57 +0800 Subject: [PATCH] chore: update Vite CSS preprocessor options for SCSS compilation --- astro.config.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index c33c930..4478b52 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -124,4 +124,13 @@ export default defineConfig({ } ]], }, + vite: { + css: { + preprocessorOptions: { + scss: { + api: 'modern-compiler', + }, + }, + }, + }, }); \ No newline at end of file