how would Closure Library know that the files were concatenated together?
i believe you can disable deps loading by just setting
window.CLOSURE_NO_DEPS = true;
before loading the script file.
@defines are not changed under WHITESPACE_ONLY mode, because then it
would not be whitespace-only.
If you didn't want any compilation / variable renaming etc - but you did
want to reduce the filesize and concatenate the scripts to make fewer
HTTP requests.
I agree that if you're using the compiler at all then you _probably_
don't want to use WHITESPACE_ONLY, unless the other options cause issues
with specific parts of your code.
I also use WHITESPACE_ONLY, along with pretty print, as a re-indentation
tool when I'm studying obscurificated scripts.
Tim
Introduced in a recent version of the Chrome devtools is a feature
which lets you turn on pretty printing of scripts using the {} button
next to the break on exceptions button.
Yup - it's awesome.
I'm normally checking for browser exploits though - so don't want it
going near a browser.