-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
36 lines (35 loc) · 1.14 KB
/
vite.config.ts
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
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import wasm from 'vite-plugin-wasm'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
wasm(),
react()
],
optimizeDeps: {
exclude: ['@babylonjs/havok'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@building': path.resolve(__dirname, './src/modules/building'),
'@character': path.resolve(__dirname, './src/modules/character'),
'@dice': path.resolve(__dirname, './src/modules/dice'),
'@event': path.resolve(__dirname, './src/modules/event'),
'@gamecore': path.resolve(__dirname, './src/modules/gamecore'),
'@inventory': path.resolve(__dirname, './src/modules/inventory'),
'@map': path.resolve(__dirname, './src/modules/map'),
'@object': path.resolve(__dirname, './src/modules/object'),
'@tournament': path.resolve(__dirname, './src/modules/tournament'),
'@core': path.resolve(__dirname, './src/core'),
}
},
// add the public folder to the build
base: './',
build: {
outDir: 'build',
assetsDir: 'public',
},
})