| 1 | import { defineConfig } from "vite"; |
| 2 | import react from "@vitejs/plugin-react-swc"; |
| 3 | import path from "path"; |
| 4 | import { componentTagger } from "lovable-tagger"; |
| 5 | |
| 6 | // https://vitejs.dev/config/ |
| 7 | export default defineConfig(({ mode }) => ({ |
| 8 | server: { |
| 9 | host: "::", |
| 10 | port: 8080, |
| 11 | }, |
| 12 | plugins: [react(), mode === "development" && componentTagger()].filter(Boolean), |
| 13 | resolve: { |
| 14 | alias: { |
| 15 | "@": path.resolve(__dirname, "./src"), |
| 16 | }, |
| 17 | }, |
| 18 | })); |