From efbca898a35758f9e7928770bc975fd31169ba17 Mon Sep 17 00:00:00 2001 From: adhu2018 <41824074+adhu2018@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:37:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0web=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/web.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 1fa806c13..43fb8e33b 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -25,13 +25,13 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 22 - uses: pnpm/action-setup@v4 name: Install pnpm id: pnpm-install with: - version: 8 + version: 9 run_install: false - name: Get pnpm store directory 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 2/2] =?UTF-8?q?chore:=20=E4=BD=BF=E7=94=A8=E7=8E=B0?= =?UTF-8?q?=E4=BB=A3=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' + }, + }, + }, });