Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glyphicons-halflings-regular.eot
- glyphicons-halflings-regular.svg
- glyphicons-halflings-regular.ttf
- glyphicons-halflings-regular.woff
- <?xml version="1.0" encoding="UTF-8"?>
- <system.webServer>
- <staticContent>
- <remove fileExtension=".eot" />
- <remove fileExtension=".ttf" />
- <remove fileExtension=".otf"/>
- <remove fileExtension=".woff"/>
- <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
- <mimeMap fileExtension=".ttf" mimeType="font/ttf" />
- <mimeMap fileExtension=".otf" mimeType="font/otf" />
- <mimeMap fileExtension=".woff" mimeType="font/x-woff" />
- </staticContent>
- </system.webServer>
- bundles.Add(new StyleBundle("~/bundles/maincss")
- .Include("~/Content/bootstrap/bootstrap.css")
- .Include("~/Content/bootstrap/bootstrap-theme.css")
- .Include("~/Content/hbl-full.css"));
- IItemTransform cssFixer = new CssRewriteUrlTransform();
- bundles.Add(new StyleBundle("~/bundles/maincss")
- .Include("~/Content/bootstrap/bootstrap.css", cssFixer)
- .Include("~/Content/bootstrap/bootstrap-theme.css", cssFixer)
- .Include("~/Content/hbl-full.css", cssFixer));
- Install-Package Twitter.Bootstrap.MVC
- public class BootstrapBundleConfig
- {
- public static void RegisterBundles()
- {
- // Add @Styles.Render("~/Content/bootstrap") in the <head/> of your _Layout.cshtml view
- // For Bootstrap theme add @Styles.Render("~/Content/bootstrap-theme") in the <head/> of your _Layout.cshtml view
- // Add @Scripts.Render("~/bundles/bootstrap") after jQuery in your _Layout.cshtml view
- // When <compilation debug="true" />, MVC4 will render the full readable version. When set to <compilation debug="false" />, the minified version will be rendered automatically
- BundleTable.Bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap.js"));
- BundleTable.Bundles.Add(new StyleBundle("~/Content/bootstrap").Include("~/Content/bootstrap.css"));
- BundleTable.Bundles.Add(new StyleBundle("~/Content/bootstrap-theme").Include("~/Content/bootstrap-theme.css"));
- }
- }
- routes.IgnoreRoute("{folder}/{*pathInfo}", new { folder = "fonts" });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement