packagist symfony/webpack-encore-bundle v1.11.0
Simpler syntax for stimulus_controller()

latest releases: v2.2.0, 2.x-dev, dev-allow-entrypoints-file-to-be-hosted-remotely...
3 years ago

Hi Webpackers!

A short time ago, v1.10.0 was released with a new stimulus_controller() Twig function. This release makes it simpler to use that with only 1 controller:

<!-- new syntax -->
{{ stimulus_controller('chart', { 'name': 'Likes', 'data': [1, 2, 3, 4] }) }}

<!-- existing, longer syntax (still works) -->
{{ stimulus_controller({ 'chart': { 'name': 'Likes', 'data': [1, 2, 3, 4] } }) }}

See #110 for more details.

Diff: v1.10.0...v1.11.0

Happy packing!

Don't miss a new webpack-encore-bundle release

NewReleases is sending notifications on new releases.