ソースを参照

chore: 使用现代编译器

解决 `The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.`
adhu2018 2 年 前
親
コミット
57d97a7a3d
1 ファイル変更、7 行追加、0 行削除
  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'
+        },
+      },
+    },
   });
   });