Răsfoiți Sursa

chore: 使用现代编译器

解决 `The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.`
adhu2018 2 ani în urmă
părinte
comite
57d97a7a3d
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 7 0
      modules/web/vite.config.js

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

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