As Asp.Net MVC4 supports script bundling, it is very convenient to use something like
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.unobtrusive*",
"~/Scripts/jquery.validate*"));
However, this bundle includes several files so if I want to use CDN (like Microsoft one - http://www.asp.net/ajaxlibrary/cdn.ashx) I would need to reference 3 different files.
Unfortunately, ScriptBundle constructor takes only 1 CDN path. How do I keep bundling enabled for local development and use CDN for production? What is the most efficient way?
If you want to use a CDN for each of those deps, you have to create a bundle for each script.
For what it's worth, I think it's kind of crazy to trust a 3rd party, over which you have no control, to serve your assets. Just serve the files yourself; it's not worth the hassle.