Skip to content

Commit

Permalink
Sass: use modern-compiler API
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Nov 4, 2024
1 parent 15de3a0 commit 8bb4fde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ export default defineConfig(({ mode }) => {
// good enough:
target: 'modules',
},
css: {
preprocessorOptions: {
sass: {
api: 'modern-compiler',
},
},
},
define: {
// Allow vue devtools to work when runing vite build:
__VUE_PROD_DEVTOOLS__: mode !== 'production'
Expand Down

0 comments on commit 8bb4fde

Please sign in to comment.