-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathvite.config.js
More file actions
33 lines (32 loc) · 1.17 KB
/
vite.config.js
File metadata and controls
33 lines (32 loc) · 1.17 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
import gltf from "vite-plugin-gltf";
import glsl from "vite-plugin-glsl";
import { resolve } from 'path'
import { viteStaticCopy } from 'vite-plugin-static-copy'
export default {
plugins: [
gltf(),
glsl(),
viteStaticCopy({
targets: [
{
src: 'src/static/json/site_a.json',
dest: 'json'
},
{
src: 'src/static/json/site_b.json',
dest: 'json'
}
]
})
],
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
game: resolve(__dirname, 'game.html'),
guide: resolve(__dirname, 'guide.html'),
notes: resolve(__dirname, 'notes.html'),
}
}
}
};