refactor: migrate to vite for critical scss bundling, remove dart sass dependency

Signed-off-by: Sped0n <hi@sped0n.com>
This commit is contained in:
Sped0n
2025-11-12 16:56:30 +08:00
committed by Ryan
parent 8b3b5cd77a
commit 4b1f529589
9 changed files with 309 additions and 30 deletions

View File

@@ -1,9 +1,10 @@
@font-face {
font-family: 'Geist';
src:
url('{{- "lib/fonts/GeistVF.woff2" | absURL -}}')
url(/* @vite-ignore */'{{- "lib/fonts/GeistVF.woff2" | absURL -}}')
format('woff2 supports variations'),
url('{{- "lib/fonts/GeistVF.woff2" | absURL -}}') format('woff2-variations');
url(/* @vite-ignore */'{{- "lib/fonts/GeistVF.woff2" | absURL -}}')
format('woff2-variations');
font-weight: 400;
font-style: normal;
font-display: swap;
@@ -11,7 +12,7 @@
@font-face {
font-family: 'FW';
src: url('{{- "lib/fonts/fw.woff2" | absURL -}}') format('woff2');
src: url(/* @vite-ignore */'{{- "lib/fonts/fw.woff2" | absURL -}}') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;