-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
31 lines (30 loc) · 863 Bytes
/
Copy pathvite.config.ts
File metadata and controls
31 lines (30 loc) · 863 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
28
29
30
31
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { threlteStudio } from '@threlte/studio/vite';
import { visualizer } from 'rollup-plugin-visualizer';
import tailwindcss from '@tailwindcss/vite';
import path from 'path';
// https://vite.dev/config/
export default defineConfig({
base: process.env.BASE_PATH ?? '/',
plugins: [
threlteStudio(),
svelte(),
tailwindcss(),
visualizer({
filename: 'stats.html',
open: false,
gzipSize: true
})
],
resolve: {
alias: {
$lib: path.resolve(__dirname, './src/lib'),
$root: path.resolve(__dirname, './src'),
$bindings: path.resolve(__dirname, './src/module_bindings'),
$core: path.resolve(__dirname, './src/core'),
$extensions: path.resolve(__dirname, './src/extensions'),
$scenes: path.resolve(__dirname, './src/scenes')
}
}
});