-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathvite.config.ts
More file actions
23 lines (22 loc) · 742 Bytes
/
Copy pathvite.config.ts
File metadata and controls
23 lines (22 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tailwindcss from '@tailwindcss/vite';
import { fileURLToPath, URL } from 'node:url';
// https://vitejs.dev/config/
export default defineConfig({
root: './src',
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@ui': fileURLToPath(new URL('./src/ui', import.meta.url)),
'@template-core': fileURLToPath(new URL('./src/templates/shared', import.meta.url)),
'@types': fileURLToPath(new URL('./src/types.ts', import.meta.url)),
'@utils': fileURLToPath(new URL('./src/utils', import.meta.url)),
},
},
server: {
port: 3000,
open: true,
},
});