From 683518b87d98e18ba34aaef2cfc17b52381378d7 Mon Sep 17 00:00:00 2001 From: adhu2018 <41824074+adhu2018@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:42:33 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BD=BF=E7=94=A8=E7=8E=B0=E4=BB=A3?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决 `The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.` --- modules/web/vite.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/web/vite.config.js b/modules/web/vite.config.js index 227560bda..a6e177250 100644 --- a/modules/web/vite.config.js +++ b/modules/web/vite.config.js @@ -65,4 +65,11 @@ export default ({ mode }) => }, }, }, + css: { + preprocessorOptions: { + scss: { + api: 'modern-compiler', // or 'modern' + }, + }, + }, });