25 lines
936 B
JavaScript
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"),
|
|
},
|
|
},
|
|
},
|
|
});
|