These files are automatically bundled in a MVC project. I created a new MVC test project in VS 2013 and verified the ones listed below, not the ones added explicity in the BundleConfig, were included in the bundles automatically before the ones that are listed in the bundles.Add() methods.
Setting a break point on the first line of the BundleConfig's RegisterBundles() method shows them in the file order before the other explicitly listed files are added to the bundles. Oddly, the count of bundles is 0, but there are 7 listed in the file order. This also supports the fact that they are added by Visual Studio "behind the scenes" because the files are in there before the ones being added in the C# code.
Most of them aren't listed in BundleConfig and don't show up in the Network activity using IE's Developer Tools. It seems like they should show up in the Network traffic though. I would be interested in an explanation about why they don't show up, if anyone knows.
Calling bundles.Clear() in the first line of the method below didn't remove the ones Visual Studio included, even though this is the intent of Clear(). It appears Microsoft decided they shouldn't be cleared.
These probably can't be removed, but I wanted to see if anyone knows how to do it . We don't need all of them in our production application and I want to omit some, if possible.
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Clear();
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
// 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.
//bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
// "~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
}
}
In bundles before explicitly adding the other files in the C# above:
- respond.js
- jszip.min.js
- reset.css
- normalize.css
- modernizr-*
- dojo.*
- mootols-core*
- mootools-*
- prototype.js
- protoype-*
- scriptaculous-*
- ext.js
- ext-*
Files listed in Developer Tools which doesn't include most of the ones above:
- bootstrap.css
- site.css
- modernizer-2.6.2.js
- jquery-1.10.2.js
- bootstrap.js
- respond.js