-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvite.config.js
More file actions
37 lines (35 loc) · 1.23 KB
/
vite.config.js
File metadata and controls
37 lines (35 loc) · 1.23 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
import { defineConfig } from 'vite';
import path from 'path';
import { fileURLToPath } from 'url';
import glsl from 'vite-plugin-glsl';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
server: {
open: true,
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@core': path.resolve(__dirname, './src/core'),
'@geometries': path.resolve(__dirname, './src/geometries'),
'@glsl': path.resolve(__dirname, './src/glsl'),
'@math': path.resolve(__dirname, './src/math'),
'@utils': path.resolve(__dirname, './src/utils'),
'@visuals': path.resolve(__dirname, './src/visuals'),
'@gBufferPass': path.resolve(__dirname, './src/gBufferPass'),
'@lightningPass': path.resolve(__dirname, './src/lightningPass'),
'@light': path.resolve(__dirname, './src/light'),
'@postprocessing': path.resolve(__dirname, './src/postprocessing'),
'@shared': path.resolve(__dirname, './src/shared'),
},
},
plugins: [
glsl({
include: ['**/*.glsl', '**/*.vert', '**/*.frag', '**/*.vs', '**/*.fs'],
exclude: undefined,
warnDuplicatedImports: true,
defaultExtension: 'glsl',
compress: false,
}),
],
});