base django-vite

This commit is contained in:
2025-10-29 01:04:13 +01:00
parent 498a1063f7
commit 91a9ebec20
19 changed files with 1125 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { resolve } from 'path';
import { fileURLToPath } from 'node:url';
// https://vitejs.dev/config/
export default defineConfig({
base: '/static/',
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
build: {
manifest: 'manifest.json',
outDir: resolve("./static/dist"),
rollupOptions: {
input: { main: resolve('./src/main.ts') }
}
}
});