-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
28 lines (25 loc) · 841 Bytes
/
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
import { defineConfig } from 'vite'
import glsl from 'vite-plugin-glsl'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [glsl()],
})
// Glsl plugin options
// https://github.com/UstymUkhman/vite-plugin-glsl
// glsl({
// include: [
// // Glob pattern, or array of glob patterns to import
// '**/*.glsl',
// '**/*.wgsl',
// '**/*.vert',
// '**/*.frag',
// '**/*.vs',
// '**/*.fs',
// ],
// exclude: undefined, // Glob pattern, or array of glob patterns to ignore
// warnDuplicatedImports: true, // Warn if the same chunk was imported multiple times
// defaultExtension: 'glsl', // Shader suffix when no extension is specified
// compress: false, // Compress output shader code
// watch: true, // Recompile shader on change
// root: '/', // Directory for root imports
// })