GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — loopy/vite.config.ts at main · ps1dev/loopy Expand file tree/ Copy pathvite.config.tsMore file actions 41 lines (39 loc) · 1.48 KB / Copy pathvite.config.tsFile metadata and controls41 lines (39 loc) · 1.48 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 /// <reference types="vitest" /> import { defineConfig } from 'vite'; import { viteSingleFile } from 'vite-plugin-singlefile'; /** * Builds to ONE self-contained index.html: no external JS, no external CSS, * no fetches at runtime. That is not cosmetic here - the multi-file version * of this app renders perfectly from file:// and then ignores every click, * because ES modules are CORS-blocked on a null origin and only the module * graph fails. Inlining removes the fetch, so the failure has nowhere to live. */ /* * A build stamp, shown in the header. * * This exists because the app is delivered as a bare `index.html` attachment. * Two of them an hour apart land in a Downloads folder as `index.html` and * `index (1).html`, and a bug report against the older one is indistinguishable * from a real defect - which cost a round trip on 2026-09-02. A visible stamp * makes "which build is that" answerable by the person holding it. */ const BUILD_STAMP = new Date().toISOString().replace('T', ' ').slice(0, 16) + 'Z'; export default defineConfig({ define: { __BUILD_STAMP__: JSON.stringify(BUILD_STAMP) }, test: { define: { __BUILD_STAMP__: JSON.stringify('test') }, testTimeout: 30_000, hookTimeout: 120_000, }, base: './', plugins: [viteSingleFile()], build: { target: 'es2022', assetsInlineLimit: 100 * 1024 * 1024, cssCodeSplit: false, reportCompressedSize: true, rollupOptions: { output: { inlineDynamicImports: true }, }, }, }); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |