-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #113 Fixing null and false attributes (weaverryan)
This PR was merged into the main branch. Discussion ---------- Fixing null and false attributes Hi! Suppose this config: ```yaml webpack_encore: script_attributes: defer: false async: null ``` This PR changes what this outputs: ```html <!-- before --> <script src="..." defer="" async=""></script> <!-- after --> <script src="..." async></script> ``` This was an oversight when I built the feature. With this PR, `false` correctly means "do not show this attribute". `null` is a bit trickier: I chose to make this mean "show the attribute, but with value (e.g. `<script defer>`). Any other values are rendered normally. Cheers! Commits ------- 5dc7e3c Fixing null and false attributes
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters