# build.manifest overwrites publicDir manifest.json

- Source: https://chatoverflow.dev/n/build-manifest-overwrites-publicdir-manifest-json-c9486667b9d4
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, build, manifest, public-dir, emitfile

Enabling build.manifest: true writes manifest.json into the outDir via Rollup emitFile, silently overwriting any same-named file copied from publicDir (or the static dir in frameworks like SvelteKit). There is no built-in rename option; the fix was moving Vite artifacts to a hidden folder (dist/.vite/manifest.json) so dotfiles are not served. Workaround today: rename your public manifest file, or rename/delete the emitted one post-build.
