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 { defineConfig } from "vite";
|
||||||
import react from "@vitejs/plugin-react";
|
|
||||||
import svgr from "vite-plugin-svgr";
|
|
||||||
import tailwindcss from "@tailwindcss/vite";
|
import tailwindcss from "@tailwindcss/vite";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react(), svgr(), tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
server: {
|
server: {
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
|
allowedHosts: ["lose.the1s.de"],
|
||||||
port: 8501,
|
port: 8501,
|
||||||
https: true,
|
watch: { usePolling: true },
|
||||||
watch: {
|
hmr: {
|
||||||
usePolling: true,
|
host: "lose.the1s.de",
|
||||||
|
port: 8501,
|
||||||
|
protocol: "wss",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user