refactor: simplify Vite configuration by removing unused plugins and ensuring proper HMR settings

This commit is contained in:
2025-08-15 11:23:01 +02:00
parent af30e87d96
commit 7ef52321d6

View File

@@ -1,16 +1,17 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
plugins: [react(), svgr(), tailwindcss()],
plugins: [tailwindcss()],
server: {
host: "0.0.0.0",
allowedHosts: ["lose.the1s.de"],
port: 8501,
https: true,
watch: {
usePolling: true,
watch: { usePolling: true },
hmr: {
host: "lose.the1s.de",
port: 8501,
protocol: "wss",
},
},
});