From 7049175827f7dfe5ee39bbac1972460fd7f20166 Mon Sep 17 00:00:00 2001 From: Po <448443959@qq.com> Date: Sun, 13 Oct 2024 18:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Druoyi=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.RuoYi.Vue3/package.json | 4 +++- Yi.RuoYi.Vue3/vite.config.js | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Yi.RuoYi.Vue3/package.json b/Yi.RuoYi.Vue3/package.json index 85c27aad..3ec387e0 100644 --- a/Yi.RuoYi.Vue3/package.json +++ b/Yi.RuoYi.Vue3/package.json @@ -45,5 +45,7 @@ "vite-plugin-style-import": "^2.0.0", "vite-plugin-svg-icons": "^2.0.1", "vite-plugin-vue-setup-extend": "^0.4.0" - } + }, + "type": "module" + } diff --git a/Yi.RuoYi.Vue3/vite.config.js b/Yi.RuoYi.Vue3/vite.config.js index e6fd7574..88127e60 100644 --- a/Yi.RuoYi.Vue3/vite.config.js +++ b/Yi.RuoYi.Vue3/vite.config.js @@ -49,6 +49,11 @@ export default defineConfig(({ mode, command }) => { }, //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file css: { + //fix Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. + preprocessorOptions: { + scss: { + api: 'modern-compiler' + }}, postcss: { plugins: [ {