I have been going through all the posts related to GCC with JQuery but unable to find the solution. Is JQuery still not compatible to work with GCC? If not can you please refer to the appropriate link or provide an example?
相关问题
- When to use typedef in closure?
- Why does Closure Compiler not shorten this?
- ECMASCRIPT 5 with wro4j and Google Closure Compile
- Google Closure Compiler, how to handle JSC_INEXIST
- Closure Compiler issues warning with namespaced en
相关文章
- How to make angular decorators minification friend
- What is the current state of JavaScript static typ
- Why does Google's Closure Compiler leave a few
- How to auto-generate externs for the Google Closur
- How to use Google's Closure to compile JavaScr
- How to indicate param is optional using inline JSD
- How to analyze Closure Compiler bundle size
- How does Google Closure Compiler handle quotes (st
Try adding this flag:
--process_jquery_primitives
https://code.google.com/p/closure-compiler/wiki/jQueryExpansions
The main distribution of jQuery is not compatible with Closure-compiler ADVANCED_OPTIMIZATIONS. To use the main build of jQuery you must reference the appropriate jQuery extern file in the Closure-compiler contrib folder.
I have an experimental jQuery 1.9.1 build which IS compatible with ADAVANCED_OPTIMIZATIONS. It is available on my GitHub account.
A version of the jQuery 2.0.x branch that is compatible is under development, but not yet complete.