Files
simple-admin/vite.config.ts
Samandar Turgunboyev 503452dd2c allow host
2025-11-10 14:32:40 +05:00

30 lines
628 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import path from "path";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [react(), tailwindcss(), tsconfigPaths()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
host: true,
port: 5173,
allowedHosts: ["*"],
},
preview: {
host: true,
port: 5263,
allowedHosts: ["*"],
},
build: {
outDir: "dist",
sourcemap: false,
},
base: "/", // ✅ assetlar togri yuklanadi
});