修复ruoyi调试警告信息

This commit is contained in:
Po
2024-10-13 18:29:02 +08:00
parent f27a5a135b
commit 7049175827
2 changed files with 8 additions and 1 deletions

View File

@@ -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"
}

View File

@@ -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: [
{