mirror of
https://github.com/corazoncp/corazoncp-landing.git
synced 2026-12-01 04:30:31 +00:00
* test(wpo): add Red contract tests for self-hosted woff2, 404.html, twitter:card, img dims, and view transitions - Assert self-hosted .woff2 fonts in public/fonts/, @font-face in built CSS, and zero Google Fonts links - Assert dist/404.html with shared partials, zero inline scripts, and return CTA to / - Assert twitter:card on all 4 routes, numeric width/height on all <img> tags, @view-transition, and brand hover * perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions - Self-host 5 latin .woff2 font files (176 KB total) in public/fonts/ with @font-face in src/style.css and remove Google Fonts links - Add static 404.html with shared partials and register in vite.config.ts - Add twitter:card metadata across all 4 routes and explicit width/height on logo.png and all 8 index.html images - Add @view-transition (prefers-reduced-motion: no-preference), brand hover state, arrow motion on solid CTAs, and reconcile services-catalog.test.js
27 lines
893 B
TypeScript
27 lines
893 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'),
|
|
notFound: path.resolve(import.meta.dirname, '404.html'),
|
|
},
|
|
},
|
|
},
|
|
});
|