From 8bb4fde6d817a66ce3081c0f6ebda879cc289e98 Mon Sep 17 00:00:00 2001 From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:30:42 +0000 Subject: [PATCH] Sass: use modern-compiler API --- vite.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vite.config.js b/vite.config.js index e620db045..5db5f3abc 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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'