Integrate Vite and Rsbuild with Symfony, a reprise of Webpack Encore Bundle.
See the code
Webpack Encore gave Symfony first-class asset integration for Webpack.
Symfony Reprise brings the same to Vite and Rsbuild.
📣 Read the announcement blog post
Symfony Reprise covers only the Symfony-side glue the bundlers leave out:
.scss/.css file and get CSS only, no stray <script>entrypoints.json: generated in both build and dev-server modesmanifest.json: maps each logical filename to its hashed URLentrypoints.json/manifest.json outside the public build dir, e.g. for private storagereprise_entry_script_tags/reprise_entry_link_tags render straight from entrypoints.jsoncontrollers.json and local controllers, eager or lazypublicPathentrypoints.jsonRenderAssetTagEvent lets listeners add, change or remove attributes on every rendered tag (e.g. a CSP nonce)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.
TypeScript
51.2%
PHP
43.2%
Twig
3.0%
JavaScript
1.6%
Integrate Vite and Rsbuild with Symfony, a reprise of Webpack Encore Bundle.
See the code
Webpack Encore gave Symfony first-class asset integration for Webpack.
Symfony Reprise brings the same to Vite and Rsbuild.
📣 Read the announcement blog post
Symfony Reprise covers only the Symfony-side glue the bundlers leave out:
.scss/.css file and get CSS only, no stray <script>entrypoints.json: generated in both build and dev-server modesmanifest.json: maps each logical filename to its hashed URLentrypoints.json/manifest.json outside the public build dir, e.g. for private storagereprise_entry_script_tags/reprise_entry_link_tags render straight from entrypoints.jsoncontrollers.json and local controllers, eager or lazypublicPathentrypoints.jsonRenderAssetTagEvent lets listeners add, change or remove attributes on every rendered tag (e.g. a CSP nonce)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.
TypeScript
51.2%
PHP
43.2%
Twig
3.0%
JavaScript
1.6%