ASP.NET Optimization - Bundling
I've been trying out the new minification and bundling feature in ASP.NET MVC 4, and it works great as long as you use the default folder conventions for css and js files. /Content /Scripts I usually put css and script in a folder called Static like this /Static/Css /Static/Js I tried to register my own bundles like this: public static class BundleCollectionExtensions { public static void RegisterScriptsAndCss(this BundleCollection bundles) { var bootstrapCss = new Bundle("~/Static/Css", new CssMinify()); bootstrapCss.AddDirectory("~/Static/Css", "*.css"); bootstrapCss.AddFile("~/Static/Css