ElMassimo / vite_ruby

⚡️ Vite.js in Ruby, bringing joy to your JavaScript experience
https://vite-ruby.netlify.app/
MIT License
1.28k stars 117 forks source link

feat: add support for vite 5, which changed default manifest path #421

Closed ElMassimo closed 9 months ago

ElMassimo commented 9 months ago

Description 📖

This pull request adds support for Vite 5 in vite_ruby.

It also modifies vite-plugin-ruby to output its manifest to .vite/manifest-assets.json, in alignment with Vite.

Background 📜

In Vite 5, the manifest has a new location, under .vite/manifest.json.

To avoid breaking existing builds which might be cached, we will still search for manifests in the old locations, during a transitional period.

franzliedke commented 2 days ago

Did this only add support for Vite 5? It looks like it also removed support for older versions, correct?