0

将我的 Web 应用程序发布到天蓝色后,Jquery 脚本包包含此标头:

/* Minification failed. Returning unminified contents.
(1447,2-3): run-time warning JS1195: Expected expression: *
(1447,31-32): run-time warning JS1004: Expected ';': c
(1448,4-13): run-time warning JS1030: Conditional compilation is turned off: @requires
 */
/*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-2.0.3.min.map
*/

我有这个捆绑注册:

public static void RegisterBundles(BundleCollection bundles)
    {
        bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                    "~/Scripts/jquery-{version}.js",
                    "~/Scripts/jquery.sitespecific.js",
                    "~/Scripts/sitespecific.js",
                    "~/Scripts/autonumeric.js",
                    "~/Scripts/jquery.coolfieldset.js"));

        bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                    "~/Scripts/jquery-ui-{version}.js"));

        bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                    "~/Scripts/jquery.unobtrusive*",
                    "~/Scripts/jquery.validate*"));

        bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                    "~/Scripts/modernizr-*"));

        bundles.Add(new StyleBundle("~/Content/css").Include(
                "~/Content/site.css"));

        bundles.Add(new StyleBundle("~/Content/themes/custom/css").Include(
                    "~/Content/themes/custom/jquery-ui-1.10.3.custom.css",
                    "~/Content/jquery.coolfieldset.css"));
    }

我在这里做错了什么?

4

1 回答 1

1

它似乎是 jquery 插件 jquery.coolfieldset.js。在此文件的末尾和开头添加换行符后,缩小工作

于 2013-11-04T19:42:26.783 回答