Files
kakebo/vite.config.js
Andros Fenollosa 35ed611a8e Replace Tailwind CLI with Vite build pipeline
- Vite container builds CSS (Tailwind + DaisyUI + custom) with
  content hashing for cache busting
- django-vite resolves hashed asset URLs via manifest.json
- Remove CDN dependencies for Tailwind and DaisyUI
- Single CSS entry point in assets/css/main.css
- Vite runs as build step before Django starts
2026-03-23 08:37:22 +01:00

21 lines
315 B
JavaScript

import { resolve } from 'path';
export default {
root: 'assets',
base: '/static/',
build: {
manifest: true,
outDir: resolve("./static"),
emptyOutDir: false,
rollupOptions: {
input: {
main: 'assets/css/main.css',
}
},
},
server: {
host: '0.0.0.0',
allowedHosts: true,
cors: true,
}
}