MinifyAll (v2.10.0) in VSCodium (v1.92.1) destroys Javascript code #186
sapereaudete
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My code:
window.onload = function () { ;(({ logging }) => { if (logging === true) { console.clear() } let arr = [], arrSum, kb = document.querySelectorAll('#kurzbemerkt .kb') kb.forEach(k => { arr.push(k.className) }) arrSum = [...new Set(arr)] arrSum.sort().forEach(as => { if (logging === true) { console.log(as.replace('kb ', '')) } }) })({ logging: true }) }
/* MinifyAll */
window.onload=function(){(({logging:o})=>{let e,l=[];document.querySelectorAll("#kurzbemerkt .kb").forEach((o=>{l.push(o.className)})),e=[...new Set(l)],e.sort().forEach((o=>{}))})({logging:!0})};
/* JSCompress as one of the others */
window.onload=function(){(({logging:e})=>{!0===e&&console.clear();let l=[],o,c=document.querySelectorAll("#kurzbemerkt .kb");c.forEach(o=>{l.push(o.className)}),o=[...new Set(l)],o.sort().forEach(o=>{!0===e&&console.log(o.replace("kb ",""))})})({logging:!0})};
Beta Was this translation helpful? Give feedback.
All reactions