public static void RegisterBundles(BundleCollection bundles) { var orderer= new AsIsBundleOrderer(); StyleBundle bootstrapBundle = new StyleBundle("~/Templates/Template1/Bootstrap"); bootstrapBundle.Orderer = orderer; bootstrapBundle.Include( "~/Templates/Template1/css/bootstrap.css", "~/Templates/Template1/css/bootstrap-responsive.css", "~/Templates/Template1/css/font-awesome.css", "~/Templates/Template1/css/bootstrap-responsive.min.css"); bundles.Add(bootstrapBundle); var jqueryBundle=new ScriptBundle("~/Templates/Template1/Jquery").Include( "~/Templates/Template1/js/vendor/modernizr-2.6.2.min.js", "~/Templates/Template1/js/vendor/jquery-1.9.1.min.js", "~/Templates/Template1/js/jquery-ui-1.10.3.custom.min.js" ).ForceOrdered(); //jqueryBundle.Orderer= orderer; bundles.Add(jqueryBundle); //bundles.FileSetOrderList.Clear(); //BundleFileSetOrdering orderList = new BundleFileSetOrdering("modernizr"); //orderList.Files.Add("~/Templates/Template1/css/bootstrap.css"); //orderList.Files.Add("~/Templates/Template1/css/bootstrap-responsive.css"); //orderList.Files.Add("~/Templates/Template1/css/font-awesome.css"); //orderList.Files.Add("~/Templates/Template1/css/bootstrap-responsive.min.css"); //orderList.Files.Add("~/Templates/Template1/js/vendor/modernizr-2.6.2.min.js"); //orderList.Files.Add("~/Templates/Template1/js/vendor/jquery-1.9.1.min.js"); //orderList.Files.Add("~/Templates/Template1/js/jquery-ui-1.10.3.custom.min.js"); //bundles.FileSetOrderList.Add(orderList); }
public OrderedStyleBundle(string virtualPath, string cdnPath) : base(virtualPath, cdnPath) { Orderer = new AsIsBundleOrderer(); }