2026-02-21 19:24:09 +00:00
|
|
|
import { fileURLToPath, URL } from "node:url";
|
2026-02-20 22:22:05 +00:00
|
|
|
|
2026-02-21 19:24:09 +00:00
|
|
|
import vue from "@vitejs/plugin-vue";
|
2026-02-21 23:48:18 +00:00
|
|
|
import { defineConfig } from "vite";
|
2026-02-22 01:14:38 +00:00
|
|
|
import { analyzer } from "vite-bundle-analyzer";
|
|
|
|
|
import { createHtmlPlugin } from "vite-plugin-html";
|
2026-02-21 19:24:09 +00:00
|
|
|
import vueDevTools from "vite-plugin-vue-devtools";
|
2026-02-20 22:22:05 +00:00
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
|
|
export default defineConfig({
|
2026-02-22 01:14:38 +00:00
|
|
|
plugins: [
|
2026-02-22 02:47:31 +00:00
|
|
|
vue(),
|
|
|
|
|
vueDevTools(),
|
2026-02-22 01:14:38 +00:00
|
|
|
analyzer({
|
|
|
|
|
analyzerMode: "static",
|
|
|
|
|
}),
|
|
|
|
|
createHtmlPlugin({
|
|
|
|
|
inject: {
|
|
|
|
|
data: {
|
|
|
|
|
title: "Kalender-Gewinnspiel",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
],
|
2026-02-22 02:47:31 +00:00
|
|
|
|
2026-02-20 22:22:05 +00:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
2026-02-21 19:24:09 +00:00
|
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
2026-02-20 22:22:05 +00:00
|
|
|
},
|
|
|
|
|
},
|
2026-02-22 02:47:31 +00:00
|
|
|
|
2026-02-21 23:48:18 +00:00
|
|
|
build: {
|
|
|
|
|
sourcemap: true,
|
|
|
|
|
},
|
2026-02-22 02:47:31 +00:00
|
|
|
|
|
|
|
|
server: {
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'http://api:8000',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
secure: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-02-21 19:24:09 +00:00
|
|
|
});
|