-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
28 lines (27 loc) · 942 Bytes
/
Copy pathvite.config.js
File metadata and controls
28 lines (27 loc) · 942 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
25
26
27
28
import { defineConfig } from "vite";
import { resolve } from "path";
import tailwindcss from "@tailwindcss/vite";
import { fileURLToPath, URL } from "node:url";
const __dirname = fileURLToPath(new URL(".", import.meta.url));
export default defineConfig({
base: "/Bid-Rally/",
plugins: [tailwindcss()],
build: {
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
auctions: resolve(__dirname, "auctions/index.html"),
create: resolve(__dirname, "new-listing/index.html"),
register: resolve(__dirname, "register/index.html"),
login: resolve(__dirname, "login/index.html"),
profile: resolve(__dirname, "profile/index.html"),
about: resolve(__dirname, "about/index.html"),
contact: resolve(__dirname, "contact/index.html"),
itemDetail: resolve(__dirname, "auctions/item.html"),
},
},
},
test: {
environment: "jsdom",
},
});