ASP.NET MVC 4 BundleTable and Bundles
@RenderSection("scripts", required: false)
These references are for ASP.NET MVC 4 and will be shortened in the production version of ASP.NET MVC 4 as a simple HTML Helper. If you look at the actual source code in the browser, you will see these get rendered as:
<link href="/Content/site.css" rel="stylesheet"/>
ASP.NET MVC 4 Custom css and js Bundling & Minification
In BundleConfig.cs class file in your App_Start folder, you will find following code which will use to add our custom css & js file. Following are the sample code.
public static void RegisterBundles(BundleCollection bundles)
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
ASP.NET MVC 4 Bundling & Minification CDN & Debug Mode Support:
BundleTable.EnableOptimizations = true;
bundles.UseCdn = true;
As CDN is used in release version, to test application we need to set Debug="False” in our web.config check that in local machine.