javascript - How to tell Google Closure Compiler in simple mode that particular function name could be compressed? -
The Google Closure Compiler does this with the ADVANCED_OPTIMIZATIONS option, but I can not use it because I use jQuery Therefore, I have to use SIMPLE_OPTIMIZATIONS, but I would like to shorten some function names.
function myLongFunctionName (feedback) {// do something here} myLongFunctionName (text); I'm fine to change myLongFunctionName to a (or whatever chooser chooses the compiler). But I do not see anyone, who can help me, how can I do this?
If the function is local, then the Google Clause compiler changes its name. I have moved my code to
(function () {function myLongFunctionName (feedback) {// some here is} myLongFunctionName (text);}) () As a result, it is also compressed.
Comments
Post a Comment