royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject Wrapping for google compiler
Date Mon, 20 Nov 2017 09:38:11 GMT
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>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message