first commit
This commit is contained in:
@@ -1,13 +1,23 @@
|
|||||||
import { defineConfig } from "vite";
|
|
||||||
import react from "@vitejs/plugin-react";
|
import react from "@vitejs/plugin-react";
|
||||||
import tailwindcss from "@tailwindcss/vite";
|
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import tsconfigPaths from "vite-tsconfig-paths";
|
import { defineConfig } from "vite";
|
||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react(), tailwindcss(), tsconfigPaths()],
|
plugins: [react()],
|
||||||
|
// Agar Vercel da custom base path kerak bo'lsa:
|
||||||
|
base: "/",
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: [{ find: "@", replacement: path.resolve(__dirname, "src") }],
|
alias: {
|
||||||
|
"@": path.resolve(__dirname, "src"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
build: {
|
||||||
|
outDir: "dist", // Vercel avtomatik 'dist' ni deploy qiladi
|
||||||
|
emptyOutDir: true,
|
||||||
|
},
|
||||||
|
server: {
|
||||||
|
port: 5173,
|
||||||
|
open: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user