I'm really liking the bundling and minification feature of ASP.NET MVC 4. Read more about it here:
One thing that got me when I initially started using this feature was how to ensure that CSS files are added in a specific order. By default when you use:
bundle.IncludeDirectory("~/content/css", "bootstrap*.css", true);
... all of the files are added in an alphabetical order - which is not something that you always want.
Solution is easy! Just add each file individually to the bundle. Something like this:
var bundle = new Bundle("~/content/css", new CssMinify());