1
Vote

Problem with Closure compilation

description

I have no idea what the problem is, but I have the following js: http://pastie.org/4303569, and the resulting minified js is only "window.a={};". I get no warnings, or errors either.

comments

flamewave4 wrote Jul 23, 2012 at 1:36 PM

You're probably using the advanced optimization mode, which is really aggressive. Below is a link to the docs explaining the advanced optimization mode. You probably want to switch it to use simple optimization in the Chirpy settings (Tools -> Options -> Chirpy -> Config -> Default JavaScript Minifier - select "Google Closure Tools - Simple").
https://developers.google.com/closure/compiler/docs/api-tutorial3