Anyway, here is my minifier for JavaScript numeric literals, I hope it is of use to youhttps://github.com/ferno/minify-numeric-literal …
-
-
An earlier version of UglifyJS naively replaced `Infinity` with `1/0`, but that turned e.g. `x/Infinity` into `x/1/0`
-
It also replaced `NaN` with `0/0`, turning `x/NaN` (always `NaN`) into `x/0/0` (`Infinity`, `-Infinity`, `NaN`) and SAVING NO CHARACTERS
- 8 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.