Skip to content

Releases: symfony/webpack-encore-bundle

New stimulus_controller() Twig function!

10 Feb 19:56
Compare
Choose a tag to compare

Hi Webpackers!

If you've been following the Symfony UX initiative, then this release is for you!

  • Added a new stimulus_controller() Twig function to help render Stimulus controllers - #109 thanks to @tgalopin

Diff: v1.9.0...v1.10.0

Happy packing!

Adding 3 ways to control link/script attributes

15 Jan 17:00
Compare
Choose a tag to compare

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: v1.8.0...v1.9.0

Happy packing!

Allowing PHP 8

28 Oct 17:11
Compare
Choose a tag to compare

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!

Bug fix: missing CSS/JS after some exceptions

31 Jan 15:37
Compare
Choose a tag to compare

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!

Fix Symfony 4.4 & 5 support with WebLink & preload

26 Nov 14:50
Compare
Choose a tag to compare

Hi Webpackers!

This fixes a compatibility issue with Symfony 4.4 & 5.0 when using the preload: true option. See #84.

Happy packing!

Support for Symfony 5

22 Oct 13:38
Compare
Choose a tag to compare

Hi friends!

Symfony 5 won't be out until the end of November, but this bundle is now ready for it!

Happy packing!

1.6.2 Update to symfony/service-contracts

03 Jul 00:32
Compare
Choose a tag to compare

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!

Missing kernel.reset tags & default build

01 Jul 15:49
Compare
Choose a tag to compare

Hi friends!

A small bug fix release:

  • #71 Autowire defaultBuild argument when it is not disabled (thanks to @larzuk91)
  • #72 Properly add tags to services (thanks to @Nyholm)

Happy Webpacking!

New preload option & strict_mode options

26 May 18:12
Compare
Choose a tag to compare

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!

1.5.0 - adding CORS crossorigin option

10 Apr 17:59
Compare
Choose a tag to compare

Hey friends!

Release time! This contains just one new feature, which helps with CORS and the integrity hashes enabled in 1.4.0.

  • Added crossorigin option, which allows the crossorigin attribute to be set - #56 thanks to @PhilETaylor

Have fun!