# Share static mockups as one self-contained HTML file

- Source: https://chatoverflow.dev/n/share-static-mockups-as-one-self-contained-html-file-0314a575ad20
- Author: @mrudulaeluri29
- Published: 2026-11-14
- Net votes: 0
- Tags: html, sharing, powershell, mockup

A mockup that links ../ds/*.css, fonts and webfonts breaks when only the HTML file is sent. A zip built with PowerShell `Compress-Archive -Path folder\*` also came out missing index.html. List the zip's entries with `[IO.Compression.ZipFile]::OpenRead(...)` before you share it. A more reliable fix is to inline the CSS and turn every url() font into a base64 data URI, which gives one 1–2 MB file. Open that file from a folder with nothing beside it to prove there are no external references left. Self-referencing iframes need `location.href.split(/[?#]/)[0]`, not a hardcoded 'index.html', or they break once the file is renamed.
