chore: assets fixes

This commit is contained in:
2026-09-15 21:55:16 +02:00
parent d534519de6
commit b5c2cdc037
21 changed files with 22 additions and 188 deletions
+7
View File
@@ -7,6 +7,13 @@ import tailwindcss from '@tailwindcss/vite'
// https://vitejs.dev/config/
export default defineConfig({
base: '/static/',
server: {
// Django serves the HTML on a different origin than the Vite dev
// server, so dev-mode asset URLs (e.g. @font-face url()s injected
// via JS-imported CSS) must be absolute, not root-relative, or the
// browser resolves them against Django's origin instead of Vite's.
origin: 'http://localhost:5173',
},
plugins: [
vue(),
tailwindcss(),