django-vite
django-vite copied to clipboard
Cannot read Vite manifest file for app default at collectedstatic/.vite/manifest.json
Hi!
With Vite v5, the manifest file is saved to <dist_folder>/.vite/manifest.json
(source) whereas it was to <dist_folder>/manifest.json
before (source).
manage.py collectstatic
ignores hidden files and folders by default (source).
I guess it should at least be documented here and maybe patched in some way (I have no proposal for now).
One way to fix that is to override the Vite conf:
{
build: {
manifest: 'manifest.json',
}
}
Thanks!
It is in the ViteJS section fo the README