symfony/reprise

Integrate Vite and Rsbuild with Symfony, a reprise of Webpack Encore Bundle.

Maintainers

Package info

github.com/symfony/reprise

Language:TypeScript

Type:symfony-bundle

pkg:composer/symfony/reprise

Transparency log

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 9

Open Issues: 0

v0.1.0 2026-07-13 07:11 UTC

This package is auto-updated.

Last update: 2026-07-13 07:15:55 UTC


README

Symfony Logo

Symfony Reprise Symfony Reprise: Webpack Encore's heritage, for modern bundlers

Latest tag PHP version Node version CI License

Webpack Encore gave Symfony first-class asset integration for Webpack.
Symfony Reprise brings the same to Vite and Rsbuild.

Warning

Experimental this bundle is experimental and is likely to change, or even change drastically.

Symfony Reprise covers only the Symfony-side glue the bundlers leave out:

  • 🎯 Multiple entries: build several independent entry points from one config
  • πŸ“„ entrypoints.json: generated in both build and dev-server modes
  • πŸ—ΊοΈ manifest.json: maps each logical filename to its hashed URL
  • πŸ”– Asset versioning: content-hash cache busting, wired into the manifest
  • πŸ“ File copy: copy static files (images, fonts…) into the build, keyed in the manifest
  • πŸ”₯ Dev server & HMR: points Twig at the running Vite/Rsbuild server
  • 🏷️ Twig tag rendering: reprise_entry_script_tags/reprise_entry_link_tags render straight from entrypoints.json
  • 🧩 Symfony UX / Stimulus: registers controllers.json and local controllers, eager or lazy
  • 🌐 CDN support: serve built assets from an absolute publicPath
  • πŸ›‘οΈ Subresource Integrity: SRI hashes in entrypoints.json

Vite and Rsbuild already handle Sass/Less/PostCSS, TypeScript, JSX/Vue/Svelte, code splitting, content hashing, source maps, minification and HMR on their own, so Symfony Reprise does not reimplement any of that.

It generates the Encore-compatible entrypoints.json and manifest.json that Reprise's own Symfony bundle (RepriseBundle) reads to render the <script> and <link> tags, wires up the native dev server, and turns your Stimulus controllers into a running application.

Read the documentation