From e05c7c28deef7e5ee66cc0cef584c4382bc260d7 Mon Sep 17 00:00:00 2001 From: TuNan Date: Sat, 15 Feb 2025 20:11:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BF=AE=E5=A4=8DSass=E7=9A=84@import?= =?UTF-8?q?=E8=A7=84=E5=88=99=E5=B7=B2=E5=BC=83=E7=94=A8=E8=AD=A6=E5=91=8A?= =?UTF-8?q?=E9=97=AE=E9=A2=98):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index 2bd70e0..78bb89e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -106,8 +106,9 @@ export default ({ mode }) => css: { preprocessorOptions: { scss: { - charset: false, - additionalData: `@import "./src/style/global.scss";`, + api: 'modern', + additionalData: `@use "./src/style/global.scss" as *;`, + silenceDeprecations: ["legacy-js-api"], }, }, },