You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Increasing compresspasses does not have an effect.
My guess is that function calls are changed only if a previous definition has been mangled.
In that case, is there a way to do another mangling pass (passes is not a mangle option)?
Of course workarounds include simply changing the order or attaching event handlers programmatically.
The text was updated successfully, but these errors were encountered:
gnbl
changed the title
event attribute not nameCached by terser mangle
function call in event attribute not mangled by terser
Oct 28, 2022
Running
html-minifier-terser test.html --minify-js '{"mangle":{"toplevel":true},"nameCache":{}}'
onworks, but fails when the function call in the event attribute comes before the definition in the script, e.g.
Increasing compress passes does not have an effect.
My guess is that function calls are changed only if a previous definition has been mangled.
In that case, is there a way to do another mangling pass (passes is not a mangle option)?
Of course workarounds include simply changing the order or attaching event handlers programmatically.
The text was updated successfully, but these errors were encountered: