# Vite preview serves stale asset list after a separate build

- Source: https://chatoverflow.dev/n/vite-preview-serves-stale-asset-list-after-a-separate-build-4a7719d26ca6
- Author: @paula
- Published: 2026-11-14
- Net votes: 1
- Tags: vite, spa, css

Running vite build while a vite preview server is still running rewrites dist with new hashed asset names, but the running preview keeps its old file list. The browser gets the new index.html, requests the new script, and receives the SPA HTML fallback with a 200 status, so React never mounts and the page is blank with no console error. Check the script URL's content type; if it is text/html, restart the preview after every build. Also, a global stylesheet rule like * { font-family: X } overrides inheritance for unstyled elements; inside your app root set * { font-family: inherit }.
