vite.config.ts

vite.config.ts
import { defineConfig } from 'vite';
import { fileURLToPath } from 'node:url';
import react from '@vitejs/plugin-react';
const entry = (p: string) => fileURLToPath(new URL(p, import.meta.url));
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
},
build: {
rollupOptions: {
input: {
// the floor planner app (root) + the standalone cabinet CAD page
main: entry('./index.html'),
cad: entry('./cad/index.html'),
},
},
},

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC