laravel / vite-plugin

Laravel plugin for Vite.
MIT License
790 stars 148 forks source link

Plugin compatibility with vite 5.1 #291

Closed LaTableRouge closed 6 months ago

LaTableRouge commented 6 months ago

Hello,

I've tried to update vite on a new laravel project (as I do on other stacks), and the new version of vite include the manifest.json inside a /.vite folder.

The laravel-vite-plugin is searching for a file that don't exist because the manifest is not at the root of the build folder. Can you make a little condition that the plugin can search for both cases ? Like so :

Best regards

driesvints commented 6 months ago

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!

timacdonald commented 6 months ago

@LaTableRouge, the laravel/vite-plugin explicitly does not use the .vite directory. This was done to ensure upgrading was not a breaking change.

There isn't any need to look elsewhere. If you are using the vite-plugin things will just work. If you are using Vite without our plugin you will need to do things manually.