-
Notifications
You must be signed in to change notification settings - Fork 418
/
vite.config.ts
30 lines (28 loc) · 1022 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
29
30
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: "/js/",
build: {
outDir: './_site/js',
rollupOptions:
{
output: {
entryFileNames: '[name].js',
format: 'es',
assetFileNames: '[name][extname]',
},
preserveEntrySignatures: "exports-only",
input: {
default: fileURLToPath(new URL('./js/default.js', import.meta.url)),
events: fileURLToPath(new URL('./js/events.jsx', import.meta.url)),
videobooths: fileURLToPath(new URL('./js/videobooths.tsx', import.meta.url)),
gameOfLifeJumbotron: fileURLToPath(new URL('./js/gameOfLifeJumbotron.ts', import.meta.url)),
["upcoming-events"]: fileURLToPath(new URL('./js/upcoming-events.jsx', import.meta.url)),
["register-wizard"]: fileURLToPath(new URL('./js/register-wizard.jsx', import.meta.url)),
},
}
}
})