aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-23 02:00:31 -0800
committerFuwn <[email protected]>2026-01-23 02:00:31 -0800
commit6d6d861ccf68b3b20334c7f6a33a64f81322d528 (patch)
treec382263a3e651dd94a836d459df8add545449028
parentfix(html): Replace self-closing non-void HTML elements with proper closing tags (diff)
downloaddue.moe-6d6d861ccf68b3b20334c7f6a33a64f81322d528.tar.xz
due.moe-6d6d861ccf68b3b20334c7f6a33a64f81322d528.zip
fix(vite): Use modern Sass compiler API to resolve deprecation warnings
-rw-r--r--vite.config.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/vite.config.ts b/vite.config.ts
index b0142b12..67d242c4 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -17,7 +17,12 @@ export default defineConfig({
proxy: {}
},
css: {
- devSourcemap: false
+ devSourcemap: false,
+ preprocessorOptions: {
+ scss: {
+ api: 'modern-compiler'
+ }
+ }
},
build: {
cssCodeSplit: true,