Files
image-platform/apps/admin/vite.config.ts

23 lines
568 B
TypeScript
Raw Normal View History

import { fileURLToPath, URL } from "node:url"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
const srcPath = (path: string) => fileURLToPath(new URL(`./src/${path}`, import.meta.url))
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
app: srcPath("app"),
layouts: srcPath("layouts"),
screens: srcPath("screens"),
widgets: srcPath("widgets"),
business: srcPath("business"),
infra: srcPath("infra"),
ui: srcPath("ui"),
shared: srcPath("shared"),
},
},
})