From 35fa5fd2ae18321519f79b86d98aae81375f049e Mon Sep 17 00:00:00 2001 From: sexygoat <1538832180@qq.com> Date: Fri, 17 Apr 2026 15:10:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=88=A0=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=9A=84uview-plus=20SCSS=E5=AF=BC=E5=85=A5,=E7=AE=80?= =?UTF-8?q?=E5=8C=96vite=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 2932570..419abc2 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,5 +4,13 @@ import uni from '@dcloudio/vite-plugin-uni' export default defineConfig({ plugins: [uni()], // 指定项目根目录为输入目录 - root: process.cwd() + root: process.cwd(), + css: { + preprocessorOptions: { + scss: { + // 静默 sass 废弃警告 + silenceDeprecations: ['legacy-js-api', 'import'] + } + } + } })