-
-
Notifications
You must be signed in to change notification settings - Fork 219
/
Copy pathvite.config.mts
39 lines (38 loc) · 861 Bytes
/
vite.config.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import tsconfig from 'vite-tsconfig-paths';
export default defineConfig({
build: {
outDir: 'dist_site',
// Adding sourcemap for better debugging
sourcemap: true,
},
plugins: [react(), tsconfig()],
root: './',
server: {
port: 4444,
watch: {
ignored: [
'node_modules',
'dist',
'build',
'public',
'package.json',
'package-lock.json',
'tsconfig.json',
'vite.config.mts',
'yarn.lock',
],
},
// Adding open option to automatically open the browser
open: true,
},
// Adding resolve.alias for better path management
resolve: {
alias: {
'@components': '/src/components',
'@models': '/src/models',
'@utils': '/src/utils',
},
},
})