I have a weird issue with the mvc4 bundler not including files with extension .min.js
In my BundleConfig class, I declare
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/Scripts/jquery")
.Include("~/Scripts/jquery-1.8.0.js"));
bundles.Add(new ScriptBundle("~/Scripts/mybundle")
.Include("~/Scripts/myscript.js?v=" + DateTime.Today.ToShortDateString().Replace("/", "").Replace(" ", ""));
}
In my view, I declare
<html>
<head>
@Scripts.Render("~/Scripts/jquery")
@Scripts.Render("~/Scripts/mybundle")
</head><body>test</body>
</html>
And when it renders, it only renders
<html>
<head>
<script src="/Scripts/jquery-1.8.0.js"></script>
</head>
<body>test</body>
</html>
If I remove versioning from script ~/Scripts/myscript.js (and update the path in the bundle accordingly), both scripts are rendered correctly.
Is there some config setting that is causing it to ignore 'versioning' files?