Эх сурвалжийг харах

chore: 使用现代编译器

解决 `The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.`
adhu2018 2 жил өмнө
parent
commit
57d97a7a3d

+ 7 - 0
modules/web/vite.config.js

@@ -65,4 +65,11 @@ export default ({ mode }) =>
         },
       },
     },
+    css: {
+      preprocessorOptions: {
+        scss: {
+          api: 'modern-compiler', // or 'modern'
+        },
+      },
+    },
   });