Skip to content

Instantly share code, notes, and snippets.

@gothandy
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gothandy/382dfc2c1bb0d3841c33 to your computer and use it in GitHub Desktop.
Save gothandy/382dfc2c1bb0d3841c33 to your computer and use it in GitHub Desktop.
Adding web fonts to an Azure Website. Extensions .eot and .woff added via a transform. You need to make changes to both files for this transform to work. Always preview transform to validate.
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.webServer>
<staticContent></staticContent>
</system.webServer>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<staticContent>
<remove fileExtension=".eot" xdt:Transform="Insert" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" xdt:Transform="Insert" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" xdt:Transform="Insert" />
</staticContent>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment