Closed valpackett closed 2 years ago
The quotes are added by html-minifier
because it sees @change=${...}/
and it believes the trailing slash is part of the attribute. So options to fix this:
/
, void elements like <input>
don't need them@change=${...} />
so that html-minifier understands the slash is not part of the attribute@change="${...}"/>
so that html-minifier understands the slash is not part of the attributekeepClosingSlash: true
in html-minifier's options (not sure if that will work, but it might if you don't want to do any of the other options)
This is kinda the inverse of #12 :)
I've been wondering why certain event handlers were completely absent in the production build of my app…
Turns out
was being minified into
Look at that slash — it was consumed into the quoted string!