diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-22 13:59:12 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 12:59:12 +0300 |
| commit | 69aeb7889ac136a8e4fbe7de1330298e30345479 (patch) | |
| tree | 6b2cd2d420105dc7ffad3c3649df359f634cae77 /frontend/vite.config.ts | |
| parent | feat/rankings: update wr for 3 maps (#279) (diff) | |
| download | lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.tar.gz lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.tar.bz2 lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.zip | |
feat/frontend: switch to vite, update node to v22 (#281)
Diffstat (limited to 'frontend/vite.config.ts')
| -rw-r--r-- | frontend/vite.config.ts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts new file mode 100644 index 0000000..4ec2af8 --- /dev/null +++ b/frontend/vite.config.ts | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | import { defineConfig } from "vite"; | ||
| 2 | import react from "@vitejs/plugin-react"; | ||
| 3 | import path from "path"; | ||
| 4 | |||
| 5 | // https://vitejs.dev/config/ | ||
| 6 | export default defineConfig({ | ||
| 7 | plugins: [react()], | ||
| 8 | resolve: { | ||
| 9 | alias: { | ||
| 10 | "@api": path.resolve(__dirname, "./src/api"), | ||
| 11 | "@components": path.resolve(__dirname, "./src/components"), | ||
| 12 | "@css": path.resolve(__dirname, "./src/css"), | ||
| 13 | "@fonts": path.resolve(__dirname, "./src/fonts"), | ||
| 14 | "@hooks": path.resolve(__dirname, "./src/hooks"), | ||
| 15 | "@images": path.resolve(__dirname, "./src/images"), | ||
| 16 | "@pages": path.resolve(__dirname, "./src/pages"), | ||
| 17 | "@customTypes": path.resolve(__dirname, "./src/types"), | ||
| 18 | "@utils": path.resolve(__dirname, "./src/utils"), | ||
| 19 | }, | ||
| 20 | }, | ||
| 21 | server: { | ||
| 22 | port: 3000, | ||
| 23 | open: true, | ||
| 24 | }, | ||
| 25 | build: { | ||
| 26 | outDir: "build", | ||
| 27 | }, | ||
| 28 | }); | ||
| 29 | |||