Updated symfony/stimulus-bridge recipe

This commit is contained in:
Jan Böhmer 2023-06-11 19:58:31 +02:00
parent 52c8ea13af
commit 7658cfcdbd
3 changed files with 12 additions and 5 deletions

View file

@ -71,6 +71,9 @@ Encore
// When enabled, Webpack "splits" your files into smaller pieces for greater optimization.
.splitEntryChunks()
// enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)
.enableStimulusBridge('./assets/controllers.json')
// will require an extra script tag for runtime.js
// but, you probably want this, unless you're building a single-page app
.enableSingleRuntimeChunk()