When using Vite 5 with a backend framework like Flask, you may need the manifest.json file placed outside the build output directory to prevent it from being URL-accessible. Vite (via Rollup) does not support relative paths in the manifest config option. Two workarounds are presented: the simple approach of appending a shell
Table of contents
The easy way: Add a mv command to the build script Copy link Link copied!The hard way: writing a Vite plugin Copy link Link copied!Sort: