pentatrion/vite-bundle
Symfony bundle integrating Vite for easy asset loading. Provides Twig functions to render the right script and link tags for Vite dev server and production builds (including React dependency handling). Install via Composer and use vite_entry_* tags in templates.
Adopt if:
vite_entry_link_tags, vite_entry_script_tags).Look elsewhere if:
For Executives: "This package lets us modernize our Symfony frontend stack by replacing Webpack Encore with Vite—cutting build times by 50%+ and improving developer productivity. It’s a drop-in replacement for Twig templates, so our frontend team can adopt Vite’s speed and HMR without disrupting existing workflows. With active maintenance and support for React, Svelte, and Stimulus, it future-proofs our tech stack while reducing technical debt. Migration is straightforward, and the performance gains justify the switch."
For Engineering Teams: *"ViteBundle solves our Webpack Encore migration pain points by:
encore_entry_link_tags with vite_entry_link_tags in minutes.Migration steps: Backup assets/ and package.json, run composer require pentatrion/vite-bundle, update vite.config.js, and replace Twig tags. No breaking changes to your app logic."*
For Developers: *"Say goodbye to Webpack’s slow builds and hello to Vite’s instant HMR. This bundle:
Example: Replace {{ encore_entry_script_tags('app') }} with {{ vite_entry_script_tags('app') }} in your base template. Run npm run dev, and enjoy sub-second HMR."*
How can I help you explore Laravel packages today?