Advertisement
Guest User

Untitled

a guest
Feb 15th, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. glyphicons-halflings-regular.eot
  2. glyphicons-halflings-regular.svg
  3. glyphicons-halflings-regular.ttf
  4. glyphicons-halflings-regular.woff
  5.  
  6. <?xml version="1.0" encoding="UTF-8"?>
  7. <system.webServer>
  8. <staticContent>
  9. <remove fileExtension=".eot" />
  10. <remove fileExtension=".ttf" />
  11. <remove fileExtension=".otf"/>
  12. <remove fileExtension=".woff"/>
  13. <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
  14. <mimeMap fileExtension=".ttf" mimeType="font/ttf" />
  15. <mimeMap fileExtension=".otf" mimeType="font/otf" />
  16. <mimeMap fileExtension=".woff" mimeType="font/x-woff" />
  17. </staticContent>
  18. </system.webServer>
  19.  
  20. bundles.Add(new StyleBundle("~/bundles/maincss")
  21. .Include("~/Content/bootstrap/bootstrap.css")
  22. .Include("~/Content/bootstrap/bootstrap-theme.css")
  23. .Include("~/Content/hbl-full.css"));
  24.  
  25. IItemTransform cssFixer = new CssRewriteUrlTransform();
  26.  
  27. bundles.Add(new StyleBundle("~/bundles/maincss")
  28. .Include("~/Content/bootstrap/bootstrap.css", cssFixer)
  29. .Include("~/Content/bootstrap/bootstrap-theme.css", cssFixer)
  30. .Include("~/Content/hbl-full.css", cssFixer));
  31.  
  32. Install-Package Twitter.Bootstrap.MVC
  33.  
  34. public class BootstrapBundleConfig
  35. {
  36. public static void RegisterBundles()
  37. {
  38. // Add @Styles.Render("~/Content/bootstrap") in the <head/> of your _Layout.cshtml view
  39. // For Bootstrap theme add @Styles.Render("~/Content/bootstrap-theme") in the <head/> of your _Layout.cshtml view
  40. // Add @Scripts.Render("~/bundles/bootstrap") after jQuery in your _Layout.cshtml view
  41. // When <compilation debug="true" />, MVC4 will render the full readable version. When set to <compilation debug="false" />, the minified version will be rendered automatically
  42. BundleTable.Bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap.js"));
  43. BundleTable.Bundles.Add(new StyleBundle("~/Content/bootstrap").Include("~/Content/bootstrap.css"));
  44. BundleTable.Bundles.Add(new StyleBundle("~/Content/bootstrap-theme").Include("~/Content/bootstrap-theme.css"));
  45. }
  46. }
  47.  
  48. routes.IgnoreRoute("{folder}/{*pathInfo}", new { folder = "fonts" });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement