Files
pagerite/frontend/vite.config.js
T
LeoVasanko 36b250a15c Pagerite: single-user CMS/blog
FastAPI backend rendering HTML with html5tagger, content persisted in a
kanta database and rendered per request. Vue only for the editing tools
(page editor over a WebSocket, site/structure editor); public pages are
plain HTML with fetch navigation. No auth: single trusted author.
2026-08-16 05:49:38 +00:00

24 lines
627 B
JavaScript

import { fileURLToPath, URL } from 'node:url'
import fastapiVue from './vite-plugin-fastapi.js'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
plugins: [
fastapiVue(),
vue(),
vueDevTools(),
],
build: {
// JS entry only: no index.html in the build (it would shadow our /),
// and a manifest so the backend can resolve hashed asset names.
manifest: true,
rollupOptions: {
input: fileURLToPath(new URL('./src/main.js', import.meta.url)),
},
},
})