jquery 1.9.0 and modernizr cannot be minified with the ASP.NET Web Optimization Framework

前端 未结 4 883
無奈伤痛
無奈伤痛 2020-12-13 02:56

We are using the ASP.NET Web Optimization Framework with bundles and minification. One bundle just contains jquery and modernizr. This all worked fine with jquery 1.8.3 but

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 03:09

    I was unable to reply to awj's answer, above, so I just voted it up. Fantastic piece of detective work. I wanted to add on to a comment, that while the problem was indeed fixed in jquery 1.9.1 it now shows up in the jquery-migrate-1.1.0

    I noticed the map file reference as only a single-line comment at the end of the "jquery-migrate-1.1.0.min.js" file. So following awj's suggestion I made it a multi-line comment.

    So line 3:

    //@ sourceMappingURL=dist/jquery-migrate.min.map
    

    now becomes lines 3, 4, and 5 as follows:

    /*
    //@ sourceMappingURL=dist/jquery-migrate.min.map
    */
    

    Once I uploaded back to my ISP I have full ajax functionality again.

    Thank you again AWJ, this has helped out greatly!

提交回复
热议问题