Internet_Programming_PIbd-2.../vite.config.js

25 lines
936 B
JavaScript
Raw Permalink Normal View History

2023-12-08 22:40:11 +04:00
import { resolve } from "path";
// eslint-disable-next-line import/no-extraneous-dependencies
import { defineConfig } from "vite";
2023-11-13 19:15:21 +04:00
export default defineConfig({
build: {
2023-12-08 22:40:11 +04:00
sourcemap: true,
emptyOutDir: true,
2023-11-13 19:15:21 +04:00
rollupOptions: {
input: {
2023-12-08 22:40:11 +04:00
main: resolve(__dirname, "index.html"),
addItem: resolve(__dirname, "add-item.html"),
admin: resolve(__dirname, "admin.html"),
cart: resolve(__dirname, "cart.html"),
catalogMobile: resolve(__dirname, "catalog-mobile.html"),
catalog: resolve(__dirname, "catalog.html"),
contacts: resolve(__dirname, "contacts.html"),
login: resolve(__dirname, "login.html"),
productCard: resolve(__dirname, "product-card.html"),
registration: resolve(__dirname, "registration.html"),
2023-11-13 19:15:21 +04:00
},
},
},
2023-12-08 22:40:11 +04:00
});