From b30829489eaf0b8802642835b1fd68717b4b6f73 Mon Sep 17 00:00:00 2001 From: zhang zhuo Date: Thu, 19 Jun 2025 18:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 1930928..072db40 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,6 +16,13 @@ export default defineConfig(({mode, command}) => { rewrite: (p) => p.replace(/^\/api/, '')// 正则删除 "/api" } } - } + }, + css: { + preprocessorOptions: { + scss: { + api: 'modern-compiler' + } + } + }, } });