-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathvite.config.js
More file actions
44 lines (40 loc) · 1.04 KB
/
Copy pathvite.config.js
File metadata and controls
44 lines (40 loc) · 1.04 KB
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
40
41
42
43
44
import path from 'node:path'
import { partytownVite } from '@builder.io/partytown/utils'
import legacy from '@vitejs/plugin-legacy'
import vue from '@vitejs/plugin-vue'
import glsl from 'vite-plugin-glsl'
import _config from './_config'
const HOST = _config.server.host
const PORT = _config.server.port
export default {
server: {
host: HOST,
port: PORT,
},
build: {
rollupOptions: {
input: {
main: path.resolve(__dirname, 'index.html'),
biomeDebug: path.resolve(__dirname, 'biome-debug.html'),
},
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
'@ui': path.resolve(__dirname, 'src/vue'),
'@ui-components': path.resolve(__dirname, 'src/vue/components'),
'@pinia': path.resolve(__dirname, 'src/pinia'),
'@styles': path.resolve(__dirname, 'src/styles'),
'@three': path.resolve(__dirname, 'src/js'),
},
},
plugins: [
legacy(),
glsl(),
vue(),
partytownVite({
dest: path.join(__dirname, 'dist', '~partytown'),
}),
],
}