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

[10.x] Support new path for Vite 5 manifest.json #49049

Closed
wants to merge 1 commit into from
Closed

[10.x] Support new path for Vite 5 manifest.json #49049

wants to merge 1 commit into from

Conversation

balu-lt
Copy link

@balu-lt balu-lt commented Nov 20, 2023

In Vite v5 manifest files are now generated in .vite directory by default.

This PR is adding support for the new path and provides fallback for the old one.
It ensures that that the new expected path is returned when the manifest file is not found.

@driesvints
Copy link
Member

Thank you but probably much more is needed here for Vite 5 support. Please see laravel/vite-plugin#265

@driesvints driesvints closed this Nov 20, 2023
@gabrielrbarbosa
Copy link

I solved this by just editing vite.config.js, I think it may be easier to just add:

export default defineConfig({
  build: {
    manifest: 'manifest.json',
  },
});

@sadiqsalau
Copy link

Inside AppServiceProvider

Vite::useManifestFilename('.vite/manifest.json');

@timacdonald
Copy link
Member

The new version of the laravel-vite-plugin handles this fix so you don't need to make any changes 👍

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

Successfully merging this pull request may close these issues.

5 participants