// Compile a standalone Tailwind stylesheet for each ported experiment page. // // These pages arrived from mdws.me as single files leaning on the Tailwind // Play CDN. The site serves no external origins (see the CSP in _headers), so // each page gets its own compiled stylesheet, built ONLY from its own class // names. The outputs are committed: the pages are frozen experiments, and a // committed artifact cannot drift between build hosts the way a rebuild can. // This script is therefore NOT part of `npm run build` -- rerun it by hand // (`npm run build:experiments`) only if a page's markup changes. // // The main site stylesheet (output.css) is untouched: sharing it would impose // the site theme on pages whose whole point is to look like themselves. import { execFileSync } from "node:child_process"; import { readFileSync, rmSync, writeFileSync } from "node:fs"; const PAGES = { pendulum: ["index.html", "app.js"], porcine: ["index.html", "app.js"], dls: ["index.html"], // etherhoo uses no Tailwind -- its styling is entirely its own