refactor: simplify Vite configuration by removing unused plugins and ensuring proper HMR settings
This commit is contained in:
@@ -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",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user