NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #619 most downloaded on Packagist
Integration of your Symfony app with Webpack Encore
Latest stable
v2.4.3
Last release 14 days ago
08 Nov 2026
Ships fairly regularly
a new release about every 4 months
Nearly every release is documented
notes for 43 of 44 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
44 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Describe the types listed by debug:autowiring by @nicolas-grekas in https://github.com/symfony/webpack-encore-bundle/pull/270
void_return CS rule for tests by @nicolas-grekas in https://github.com/symfony/webpack-encore-bundle/pull/273Full Changelog: https://github.com/symfony/webpack-encore-bundle/compare/v2.4.2...v2.4.3
Bump shivammathur/setup-php from 083d5237d9340d541bf95e2a6eceaf3529b85892 to 3fa88f249467922a9b7f10bd5980d53bce780336 in the github-actions group acro
rel in the Link HTTP header by @Kocal in https://github.com/symfony/webpack-encore-bundle/pull/269Full Changelog: https://github.com/symfony/webpack-encore-bundle/compare/v2.4.1...v2.4.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix Symfony 8.1 DependencyInjection deprecation warning by @30Sana in https://github.com/symfony/webpack-encore-bundle/pull/258
Full Changelog: https://github.com/symfony/webpack-encore-bundle/compare/v2.4.0...v2.4.1
Move Symfony DI config from XML to PHP by @dmaicher in https://github.com/symfony/webpack-encore-bundle/pull/251
Full Changelog: https://github.com/symfony/webpack-encore-bundle/compare/v2.3.0...v2.4.0
Add PullRequest template by @Kocal in https://github.com/symfony/webpack-encore-bundle/pull/242
Full Changelog: https://github.com/symfony/webpack-encore-bundle/compare/v2.2.0...v2.3.0
Almost a year later, here's a new release containing support for PHP 8.3 and 8.4, support remote entrypoints.json file, and the addition of the integr
Hi Webpackers!
Almost a year later, here's a new release containing support for PHP 8.3 and 8.4, support remote entrypoints.json file, and the addition of the integrity attribute in the Link header for preloading.
Full Changelog: https://github.com/symfony/webpack-encore-bundle/compare/v2.1.1...v2.2.0
Happy packing!
A small bug fix to match return types in Symfony 7.
Hi Webpackers!
A small bug fix to match return types in Symfony 7.
Full Changes: https://github.com/symfony/webpack-encore-bundle/compare/v2.1.0...v2.1.1
Have fun!
Allow Symfony 7 by @jmsche in https://github.com/symfony/webpack-encore-bundle/pull/221
Hi Webpackers!
Full Changelog: https://github.com/symfony/webpack-encore-bundle/compare/v2.0.1...v2.1.0
Happy packing!
This release is relaxes the version requirements for symfony/service-contracts to allow upgrading on 5.4 projects - see #214
Hi Webpackers!
This release is relaxes the version requirements for symfony/service-contracts to allow upgrading on 5.4 projects - see #214
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v2.0.0...v2.0.1
Happy packing!
This release is identical to 1.17.0 except that it removes deprecated code.
Hi Webpackers!
This release is identical to 1.17.0 except that it removes deprecated code.
Version 2.0 also requires PHP 8.1 or higher and Symfony 5.4 or higher.
If you're using symfony/flex, when you upgrade your symfony/webpack-encore-bundle recipe to the 2.0 version, it may try to remove certain files like assets/controllers.json or assets/bootstrap.js. You should ignore these changes and restore the files. This happens because these files moved from the recipe for symfony/webpack-encore-bundle to symfony/stimulus-bundle. To the update system, it looks like the files are being removed.
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.17.0...v2.0.0
Happy packing!
Fix incorrect classes assignation and controller rendering by @ker0x in https://github.com/symfony/webpack-encore-bundle/pull/208
Hi Webpackers!
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.17.1...v1.17.2
Happy packing!
A quick fix for version 1.17.0 that fixes this error when used with StimulusBundle:
Hi Webpackers!
A quick fix for version 1.17.0 that fixes this error when used with StimulusBundle:
The service "twig" has a dependency on a non-existent service "webpack_encore.twig_stimulus_extension". Did you mean this: "webpack_encore.twig_entry_files_extension"
Upgrading should resolve the error. See #213.
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.17.0...v1.17.1
Happy packing!
This release deprecates the stimulus_controller(), stimulus_action() and stimulus_target functions because they are now included with the new symfony/…
Hi Webpackers!
This release deprecates the stimulus_controller(), stimulus_action() and stimulus_target functions because they are now included with the new symfony/stimulus-bundle. Run composer require symfony/stimulus-bundle to grab the functions from that package instead.
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.16.1...v1.17.0
Happy packing!
stimulus_controller(), stimulus_action() and stimulus_target
functions and related classes. Install symfony/stimulus-bundle instead.This release fixes a bug if using the stimulus_* functions most commonly with the form system - see https://github.com/symfony/webpack-encore-bundle/p
Hi Webpackers!
This release fixes a bug if using the stimulus_* functions most commonly with the form system - see https://github.com/symfony/webpack-encore-bundle/pull/178#issuecomment-1379604029
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.16.0...v1.16.1
Happy packing!
This release adds support for Stimulus CSS Classes - https://stimulus.hotwired.dev/reference/css-classes.
Hi Webpackers!
This release adds support for Stimulus CSS Classes - https://stimulus.hotwired.dev/reference/css-classes.
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.15.1...v1.16.0
Happy packing!
…some internal changes regarding how the code is deprecated and documented
Hi Webpackers!
This release follows up on the new superpowers of stimulus_controller(), stimulus_action() and stimulus_target() from 1.15.0 with some internal changes regarding how the code is deprecated and documented
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.15.0...v1.15.1
Happy packing!
This release makes stimulus_controller(), stimulus_action() and stimulus_target() much more user-friendly when you either (A) need to add multiple con
Hi Webpackers!
This release makes stimulus_controller(), stimulus_action() and stimulus_target() much more user-friendly when you either (A) need to add multiple controllers/actions/targets or if you want to pass a controller/action/target into Symfony's form system. For example:
{{ form_row(form.password, {
attr: stimulus_action('hello-controller', 'checkPasswordStrength').toArray()
}) }}
How cool is that?
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.14.1...v1.15.0
Happy packing!
July 6th, 2022
This release contains an important bug fix for a bug that was introduced in 1.14.0 if you use sub-requests (e.g. {{ render(controller(...)) }} or simi
Hi Webpackers!
This release contains an important bug fix for a bug that was introduced in 1.14.0 if you use sub-requests (e.g. {{ render(controller(...)) }} or similar). If you have any continued problems, let us know. See #166.
May 3rd, 2022
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.14.0...v1.14.1
Happy packing!
This release contains one small feature and one big fix, which affects how encore assets are handled during sub-requests.
Hi Webpackers!
This release contains one small feature and one big fix, which affects how encore assets are handled during sub-requests.
February 14th, 2022
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.13.2...v1.14.0
Happy packing!
This release contains just one fix to help install when using Symfony 6.
This release contains a fix for stimulus_controller when passing null to one of the values.
This release contains support for Symfony 6 + 1 bug fix!
Hi Webpackers!
This release contains support for Symfony 6 + 1 bug fix!
November 19th, 2021
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.12.0...v1.13.0
Happy packing!
This release contains 2 new functions to help when working with Stimulus.
Hi Webpackers!
This release contains 2 new functions to help when working with Stimulus.
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.11.2...v1.12.0
Happy packing!
June 18th, 2021
This release contains a bug fix for when using stimulus_controller with a boolean "value" and cleans up some deprecations:
Hi Webpackers!
This release contains a bug fix for when using stimulus_controller with a boolean "value" and cleans up some deprecations:
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.11.1...v1.11.2
Happy packing!
This release contains a bug fix for the script_attributes and link_attributes feature introduced in v1.9.0.
Hi Webpackers!
This release contains a bug fix for the script_attributes and link_attributes feature introduced in v1.9.0.
Previously, you could not disable an attribute by setting it to false - for example:
webpack_encore:
script_attributes:
defer: false
Before this release, this would add a defer="" attribute. Now it correctly will not include the attribute.
Setting an attribute to null - defer: null - WILL include the attribute.
See #113 for more details.
Also see #112 where the new stimulus_controller() function's "safety" was limited to HTML attributes thanks to @stof.
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.11.0...v1.11.1
Happy packing!
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 controlle
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: https://github.com/symfony/webpack-encore-bundle/compare/v1.10.0...v1.11.0
Happy packing!
February 10th, 2021
If you've been following the Symfony UX initiative, then this release is for you!
Hi Webpackers!
If you've been following the Symfony UX initiative, then this release is for you!
stimulus_controller() Twig function to help render Stimulus controllers - #109 thanks to @tgalopinDiff: https://github.com/symfony/webpack-encore-bundle/compare/v1.9.0...v1.10.0
Happy packing!
This release contains a long-asked-for feature: the ability to control the attributes on the script and link tags generated by this bundle. There are
Hi Webpackers!
This release contains a long-asked-for feature: the ability to control the attributes on the script and link tags generated by this bundle. There are 3 ways to control them: (A) globally via config, (B) when using the Twig functions or (C) via an event listener. See the docs for more details: https://github.com/symfony/webpack-encore-bundle#custom-attributes-on-script-and-link-tags
Diff: https://github.com/symfony/webpack-encore-bundle/compare/v1.8.0...v1.9.0
Happy packing!
January 15th, 2021
This release adds support for PHP 8! See #98 for details. And a big thanks to @jmsche for their work on that PR.
Hi friends!
This release adds support for PHP 8! See #98 for details. And a big thanks to @jmsche for their work on that PR.
Happy packing!
This release contains a single bug fix for a tricky issue: you render a Twig template (which uses the encore_entry_link_tags() and encore_entry_script
Hi friends!
This release contains a single bug fix for a tricky issue: you render a Twig template (which uses the encore_entry_link_tags() and encore_entry_script_tags() functions) and then an exception (for some reason) is thrown, Symfony would correctly render your error template BUT any calls to encore_entry_link_tags() in that template would render no link/script tags because they were "already rendered". This is due to an important feature in WebpackEncoreBundle where any link or script tag is never rendered multiple times... to avoid having the same JS or CSS file rendered on the same page multiple times.
However, in the case of an exception that's thrown in Twig, WebpackEncoreBundle would think that a JS or CSS file had been rendered, but in reality, the HTML it was rendered into was never used - because the exception caused that HTML to not be used and for the "error" page to be used instead.
This was fixed in #74 thanks to @tbmatuka and @ckrack by adding an exception listener that "resets" this bundle's "memory" of what it has rendered.
If you experience any adverse effects, please open an issue :).
Happy packing!
This fixes a compatibility issue with Symfony 4.4 & 5.0 when using the preload: true option. See #84.
Hi Webpackers!
This fixes a compatibility issue with Symfony 4.4 & 5.0 when using the preload: true option. See #84.
Happy packing!
Nothing published for this version
Symfony 5 won't be out until the end of November, but this bundle is now ready for it!
Hi friends!
Symfony 5 won't be out until the end of November, but this bundle is now ready for it!
Happy packing!
A tiny release, but one that fixes an annoying bug with the composer autoloader.
A tiny release, but one that fixes an annoying bug with the composer autoloader.
#65 - [Contracts] Update dependency to use symfony/service-contracts - thanks to @wbrinkman
Happy Webpacking!
Hi friends! A small bug fix release: * #71 Autowire defaultBuild argument when it is not disabled (thanks to @larzuk91) * #72 Properly add tags to ser
Hi friends!
A small bug fix release:
Happy Webpacking!
Woo! Another release - this time with two small, but nice features!
Woo! Another release - this time with two small, but nice features!
Automatically add http2 preload Link headers to all assets thanks to the preload option - #61 thanks to @weaverryan
New strict_mode option to avoid throwing an exception for missing entrypoints.json or keys inside - #54 thanks to @karser
Have fun!
Release time! This contains just one new feature, which helps with CORS and the integrity hashes enabled in 1.4.0.
Hey friends!
Release time! This contains just one new feature, which helps with CORS and the integrity hashes enabled in 1.4.0.
crossorigin option, which allows the crossorigin attribute to be set - #56 thanks to @PhilETaylorHave fun!
Hi friends! Another release with a few nice features 👐
Hi friends! Another release with a few nice features 👐
Automatic integrity attributes on script & link tags. Just use the new Encore. enableIntegrityHashes() function from @symfony/webpack-encore version 0.26.0 and this will instantly work. #42 thanks to @Lyrkan
Ability to disable the "default" build if you want only named builds - #37 thanks to @emodric
Happy Webpacking!
This contains one small feature:
Release time!
This contains one small feature:
Have fun!
This fixes an issue related to the new caching option for the entrypoints.json file when used with multiple builds as well as an issue with warming th
Hey friends!
This fixes an issue related to the new caching option for the entrypoints.json file when used with multiple builds as well as an issue with warming the cache.
Have fun!
This patch release includes a bug fix that cached cache warming to incorrectly fail - see #48 (thanks to @NotDvaMain)
Hi folks!
This patch release includes a bug fix that cached cache warming to incorrectly fail - see #48 (thanks to @NotDvaMain)
Cheers!
This release includes the ability to cache your entrypoints.json file parsing (#12) for a small performance boost, and a few other fixes.
Hi friends!
This release includes the ability to cache your entrypoints.json file parsing (#12) for a small performance boost, and a few other fixes.
Enjoy!
Woo! Our second release for this small bundle adds an important missing feature: support for multiple Webpack builds and reading the different entrypo
Woo! Our second release for this small bundle adds an important missing feature: support for multiple Webpack builds and reading the different entrypoints.json files.
Highlights:
Enjoy!
The first release for WebpackEncoreBundle - containing 2 new Twig functions that help you generate the script and link tags needed for working with We
The first release for WebpackEncoreBundle - containing 2 new Twig functions that help you generate the script and link tags needed for working with Webpack Encore.
Enjoy!
One column per quarter.