How to make Jquery work with google closure compiler

前端 未结 2 1309
囚心锁ツ
囚心锁ツ 2020-12-09 14:00

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 re

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 14:04

    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.

提交回复
热议问题