Skip to content

Commit

Permalink
chore: 使用现代编译器
Browse files Browse the repository at this point in the history
解决 `The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.`
  • Loading branch information
adhu2018 authored Oct 10, 2024
1 parent efbca89 commit 683518b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/web/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,11 @@ export default ({ mode }) =>
},
},
},
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler', // or 'modern'
},
},
},
});

0 comments on commit 683518b

Please sign in to comment.