-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
27 lines (26 loc) · 881 Bytes
/
vite.config.ts
File metadata and controls
27 lines (26 loc) · 881 Bytes
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
import react from '@vitejs/plugin-react-swc'
import { defineConfig } from 'vite'
import path from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'assets': path.resolve(__dirname, 'src/assets'),
'components': path.resolve(__dirname, 'src/components'),
'objects': path.resolve(__dirname, 'src/objects'),
'server': path.resolve(__dirname, 'src/server'),
'shared': path.resolve(__dirname, 'src/shared'),
'spriteSheets': path.resolve(__dirname, 'src/spriteSheets'),
'systems': path.resolve(__dirname, 'src/systems'),
'types': path.resolve(__dirname, 'src/types'),
'utilities': path.resolve(__dirname, 'src/utilities'),
}
},
server: {
host: true
},
build: {
chunkSizeWarningLimit: 1600, // Increase the chunk size warning limit to 1600 KB
}
})