mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2026-02-25 02:20:17 +00:00
- add version to ui package.json - "prettier" formatting on whole repo - "webpack-bundle-analyzer" -> "vite-bundle-analyzer" - add "vue-eslint-parser" to ui package.json
45 lines
852 B
TypeScript
45 lines
852 B
TypeScript
import { fileURLToPath, URL } from "node:url";
|
|
|
|
import vue from "@vitejs/plugin-vue";
|
|
import { defineConfig } from "vite";
|
|
import { analyzer } from "vite-bundle-analyzer";
|
|
import { createHtmlPlugin } from "vite-plugin-html";
|
|
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: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
},
|
|
|
|
build: {
|
|
sourcemap: true,
|
|
},
|
|
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://api:8000",
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
},
|
|
});
|