ASP.NET MVC Script bundle not rendered

后端 未结 1 702
暖寄归人
暖寄归人 2021-02-14 19:15

I\'ve included the following line in the BundleConfig.cs file:

bundles.Add(new ScriptBundle(\"~/bundles/jqueryajax\").Include(
  \"~/Scripts/jquery.         


        
1条回答
  •  终归单人心
    2021-02-14 20:07

    I believe ScriptBundle tries to minify the file when debug="false" instead of using the existing .min.js file. There is a setting in web.config to affect how this works (set usePreMinifiedFiles to true):

    
         
    

    0 讨论(0)
提交回复
热议问题