I\'m just trying out ASP.NET 4.5 bundling and minification, and ran into an issue.
I\'ve got around 10 css files, of which 2 were originally referenced in the layout
Well, it's an ugly hack, but hopefully the team will add a built-in way to do it in the next release.
This is how I solved it, maintaining the caching string and still being able to add the media attribute to the tag.
@{
var cssMediaBundleUrl = BundleTable.Bundles.ResolveBundleUrl("~/stylesheets/mediacss", true);
}
Guess I can turn this into an Html helper, will do that later and edit.