aboutsummaryrefslogtreecommitdiff
path: root/frontend/vite.config.ts
diff options
context:
space:
mode:
authorFifthWit <fifthwitbusiness@gmail.com>2025-08-07 23:49:32 -0500
committerFifthWit <fifthwitbusiness@gmail.com>2025-08-07 23:49:32 -0500
commitc5e14546482598b799ddcee025d705e59dc2470b (patch)
tree295d37268ccdf12693dbeff62f829ff9e8662018 /frontend/vite.config.ts
parentswitched to double quotes (diff)
downloadlphub-c5e14546482598b799ddcee025d705e59dc2470b.tar.gz
lphub-c5e14546482598b799ddcee025d705e59dc2470b.tar.bz2
lphub-c5e14546482598b799ddcee025d705e59dc2470b.zip
Switched to Vite as build tool
Diffstat (limited to 'frontend/vite.config.ts')
-rw-r--r--frontend/vite.config.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
new file mode 100644
index 0000000..3c2c9bd
--- /dev/null
+++ b/frontend/vite.config.ts
@@ -0,0 +1,31 @@
1import { defineConfig } from 'vite'
2import react from '@vitejs/plugin-react'
3import path from 'path'
4
5export default defineConfig({
6 plugins: [react()],
7 resolve: {
8 alias: {
9 '@api': path.resolve(__dirname, './src/api'),
10 '@components': path.resolve(__dirname, './src/components'),
11 '@css': path.resolve(__dirname, './src/css'),
12 '@customTypes': path.resolve(__dirname, './src/types'),
13 '@hooks': path.resolve(__dirname, './src/hooks'),
14 '@pages': path.resolve(__dirname, './src/pages'),
15 '@utils': path.resolve(__dirname, './src/utils'),
16 '@images': path.resolve(__dirname, './src/images'),
17 },
18 },
19 server: {
20 port: 3000,
21 proxy: {
22 '/api': {
23 target: 'http://localhost:8080',
24 changeOrigin: true,
25 },
26 },
27 },
28 build: {
29 outDir: 'build',
30 },
31}) \ No newline at end of file