-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
20 lines (19 loc) · 847 Bytes
/
vite.config.js
File metadata and controls
20 lines (19 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { resolve } from 'path'
import { defineConfig } from 'vite'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
build: {
rollupOptions: {
input: {
main: resolve(fileURLToPath(new URL('.', import.meta.url)), 'index.html'),
materi: resolve(fileURLToPath(new URL('.', import.meta.url)), 'materi.html'),
showcase: resolve(fileURLToPath(new URL('.', import.meta.url)), 'showcase.html'),
materiDetail: resolve(fileURLToPath(new URL('.', import.meta.url)), 'materi-detail.html'),
tentang: resolve(fileURLToPath(new URL('.', import.meta.url)), 'tentang.html'),
kontak: resolve(fileURLToPath(new URL('.', import.meta.url)), 'kontak.html'),
notFound: resolve(fileURLToPath(new URL('.', import.meta.url)), '404.html'),
}
}
},
appType: 'mpa'
})