Skip to content

Bug fix for disabling a "script_attributes"

Compare
Choose a tag to compare
@weaverryan weaverryan released this 17 Feb 13:49
· 113 commits to main since this release
395b60a

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: v1.11.0...v1.11.1

Happy packing!