I was not able to find the magic incantation to get —output_wrapper in the goog 
compiler to work.[1]

I tried a couple of variations on this theme:
-js-compiler-option='--output_wrapper (function(){%output%}());'

I gave up and added the anonymous function wrapper using a post-processing 
script.

Any suggestions on how to make this work?

[1]https://github.com/google/closure-compiler/wiki/FAQ#when-using-advanced-optimizations-closure-compiler-adds-new-variables-to-the-global-scope-how-do-i-make-sure-my-variables-dont-collide-with-other-scripts-on-the-page
 
<https://github.com/google/closure-compiler/wiki/FAQ#when-using-advanced-optimizations-closure-compiler-adds-new-variables-to-the-global-scope-how-do-i-make-sure-my-variables-dont-collide-with-other-scripts-on-the-page>

Reply via email to