Internet_Programming_PIbd-2.../vite.config.js
2023-12-08 22:40:11 +04:00

25 lines
936 B
JavaScript

import { resolve } from "path";
// eslint-disable-next-line import/no-extraneous-dependencies
import { defineConfig } from "vite";
export default defineConfig({
build: {
sourcemap: true,
emptyOutDir: true,
rollupOptions: {
input: {
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"),
},
},
},
});