-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.js
More file actions
25 lines (23 loc) · 853 Bytes
/
vite.config.js
File metadata and controls
25 lines (23 loc) · 853 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
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'
import path from 'path'
import { defineConfig } from 'vite'
export default defineConfig(() => {
let config = {
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@assets': fileURLToPath(new URL('./src/assets', import.meta.url)),
'@components': fileURLToPath(new URL('./src/templates', import.meta.url)),
'@services': fileURLToPath(new URL('./src/services', import.meta.url)),
'@helpers': fileURLToPath(new URL('./src/helpers', import.meta.url)),
'three/build/three.webgpu.js': path.resolve(
__dirname,
'node_modules/three/build/three.webgpu.js'
) // fix to wrong compilation of Globe dependencie
}
}
}
return config
})