chore: assets fixes
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user