Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Vayel opened this issue Feb 7, 2024 · 1 comment

Comments

@Vayel
Copy link

Vayel commented Feb 7, 2024

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!

@jaap3
Copy link

jaap3 commented Jun 10, 2024

It is in the ViteJS section fo the README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants