public class CssRewriteUrlTransformWrapper : IItemTransform { public string Process(string includedVirtualPath, string input) { return new CssRewriteUrlTransform().Process("~" + VirtualPathUtility.ToAbsolute(includedVirtualPath), input); } } bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap/css/bootstrap.css" ).Include("~/Content/plugins/magnific-popup/magnific-popup.css" ).Include("~/Content/plugins/owl-carousel/owl.carousel.css" ).Include("~/Content/css/style.css" ).Include("~/Content/css/custom.css" ).Include("~/Content/css/skins/red.css" ).Include("~/Content/css/animations.css", new CssRewriteUrlTransformWrapper())); BundleTable.EnableOptimizations = false;