mirror of
https://github.com/corazoncp/corazoncp-landing.git
synced 2026-12-01 04:30:31 +00:00
- vite.config.ts: register kundalini, volverATi, and descargo HTML entrypoints in Rollup multi-page build inputs so all routes emit into dist/. - kundalini/index.html: add the Kundalini Yoga hub page presenting Seva Surpreet Kaur's pathways (Volver a ti and group classes) with SEO/OG metadata. - volver-a-ti/index.html: add the Volver a ti personalized Kundalini Yoga program page with enrollment links gated by disclaimer acceptance. - src/scripts/volver-a-ti.js: implement the disclaimer acceptance gate using aria-disabled, BFCache pageshow synchronization, and accessible status/focus feedback before enrollment. - descargo/index.html: add the participation conditions and liability disclaimer page referenced by the Volver a ti enrollment gate. - tests/kundalini-routes.test.js: add route, metadata, contact invariant, and disclaimer gate behavioral tests covering all new pages.
26 lines
828 B
TypeScript
26 lines
828 B
TypeScript
import path from 'node:path';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { defineConfig } from 'vite-plus';
|
|
import htmlPartialsPlugin from './scripts/html-partials-plugin.ts';
|
|
|
|
export default defineConfig({
|
|
plugins: [tailwindcss(), htmlPartialsPlugin()],
|
|
server: {
|
|
port: 3000,
|
|
open: false,
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: true,
|
|
// Why: every HTML entrypoint must be registered so Vite builds all multi-page routes into dist/.
|
|
rollupOptions: {
|
|
input: {
|
|
main: path.resolve(import.meta.dirname, 'index.html'),
|
|
kundalini: path.resolve(import.meta.dirname, 'kundalini/index.html'),
|
|
volverATi: path.resolve(import.meta.dirname, 'volver-a-ti/index.html'),
|
|
descargo: path.resolve(import.meta.dirname, 'descargo/index.html'),
|
|
},
|
|
},
|
|
},
|
|
});
|