django-vite icon indicating copy to clipboard operation
django-vite copied to clipboard

Cannot read Vite manifest file for app default at collectedstatic/.vite/manifest.json

Open Vayel opened this issue 1 year ago • 1 comments

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!

Vayel avatar Feb 07 '24 14:02 Vayel

It is in the ViteJS section fo the README

jaap3 avatar Jun 10 '24 13:06 jaap3