Skip to content

Instantly share code, notes, and snippets.

@venblee
Created June 21, 2013 07:45
Show Gist options
  • Save venblee/5829580 to your computer and use it in GitHub Desktop.
Save venblee/5829580 to your computer and use it in GitHub Desktop.
Bundeling for Bootsrap
BundleTable.Bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap*"));
BundleTable.Bundles.Add(new StyleBundle("~/Content/bootstrap").Include("~/Content/bootstrap.css", "~/Content/bootstrap-responsive.css"));
BundleTable.Bundles.Add(new ScriptBundle("~/js").Include(
"~/Scripts/jquery-{version}.js",
"~/Scripts/jquery-migrate-{version}.js",
"~/Scripts/bootstrap.js",
"~/Scripts/jquery.validate.js",
"~/Scripts/jquery.validate.unobtrusive.js",
"~/Scripts/jquery.validate.unobtrusive-custom-for-bootstrap.js"
));
BundleTable.Bundles.Add(new StyleBundle("~/content/css").Include(
"~/Content/bootstrap.css",
"~/Content/body.css",
"~/Content/bootstrap-responsive.css",
"~/Content/bootstrap-mvc-validation.css"
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment