-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
24 lines (23 loc) · 695 Bytes
/
vite.config.js
File metadata and controls
24 lines (23 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { resolve } from 'path'
import { defineConfig } from 'vite'
export default defineConfig({
base: './',
root: 'src',
build: {
publicDir: 'public',
outDir: '../dist',
rollupOptions: {
input: {
index: resolve(__dirname, 'src/index.html'),
main: resolve(__dirname, 'src/404.html'),
'blogs': resolve(__dirname, 'src/blogs/index.html'),
'privacy-policy': resolve(__dirname, 'src/privacy-policy/index.html'),
'all-about-me': resolve(__dirname, 'src/blogs/all-about-me/index.html'),
'the-computer-science-speedrun': resolve(__dirname, 'src/blogs/the-computer-science-speedrun/index.html')
},
},
},
server: {
open: 'index.html'
}
})