Is it possible to use Closure Compiler ADVANCED_OPTIMIZATIONS with jQuery?
问题 I keep getting errors that the function (renamed) does not exist for the given object. Is there a release or setting or something to make it work? 回答1: You have to declare jQuery as an extern to the compiler...however I'm not sure if anyone's made one, there was an extern file for 1.3.2, but I haven't seen any 1.4+ versions. Edit: this issue thread here has the community building a 1.4 version. 回答2: You must use an externs file for jQuery when using Closure Compiler Advanced Mode with jQuery.