I can successfully include jquery library with ScriptBundle from ASP.NET MVC by using below
bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-1.7.1.js"));
However, If I changed to the minimized library, I could not get it from browser
bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-1.7.1.min.js"));
anything wrong with the code?
Unless
EnableOptimizationsistrueor the debug attribute in the compilation Element in theWeb.configfile is set to false, files will not be bundled or minified. Additionally, the.minversion of files will not be used, the full debug versions will be selected.EnableOptimizationsoverrides the debug attribute in the compilation Element in theWeb.configfilemore info