advent22/ui/vite.config.ts

34 lines
693 B
TypeScript
Raw Normal View History

2026-02-21 19:24:09 +00:00
import { fileURLToPath, URL } from "node:url";
2026-02-21 19:24:09 +00:00
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";
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";
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
analyzer({
analyzerMode: "static",
}),
createHtmlPlugin({
inject: {
data: {
title: "Kalender-Gewinnspiel",
},
},
}),
],
resolve: {
alias: {
2026-02-21 19:24:09 +00:00
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
build: {
sourcemap: true,
},
2026-02-21 19:24:09 +00:00
});