-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
executable file
·38 lines (36 loc) · 1.1 KB
/
Copy pathvite.config.js
File metadata and controls
executable file
·38 lines (36 loc) · 1.1 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
34
35
36
37
38
import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
import { resolve } from 'path'
import { fileURLToPath } from 'url'
import { dirname } from 'path'
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
export default defineConfig({
base: './',
plugins: [
tailwindcss(),
],
server: {
proxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
},
},
},
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
adminDashboard: resolve(__dirname, 'pages/adminDashboard.html'),
adminLogin: resolve(__dirname, 'pages/adminLogin.html'),
paymentCode: resolve(__dirname, 'pages/paymentCode.html'),
reportIssue: resolve(__dirname, 'pages/reportIssue.html'),
setInventory: resolve(__dirname, 'pages/setInventory.html'),
setPath: resolve(__dirname, 'pages/setPath.html'),
viewActions: resolve(__dirname, 'pages/viewActions.html'),
paymentError: resolve(__dirname, 'pages/paymentError.html'),
}
}
}
})