How to prevent Closure Compiler from renaming "true", "false" and "null"
Posted
by
Armagan Amcalar
on Stack Overflow
See other posts from Stack Overflow
or by Armagan Amcalar
Published on 2011-01-06T18:51:28Z
Indexed on
2011/01/06
19:54 UTC
Read the original article
Hit count: 343
JavaScript
|google-closure-compiler
Google Closure Compiler renames all "true", "false" and "null" occurences in code like;
var s = true, x = null, V = false;
and uses these shorthands instead; in conditions such as;
if (someVariable == s)
now; Google Analytics code defines it's own "s" variable; overriding the value "true"; and as you can see this causes a lot of problems.
I don't want to change GA code; I just want Closure Compiler to quit renaming true etc. Externs do not work.
Do you know any way to accomplish this?
© Stack Overflow or respective owner