To make it work with IIS Express, you need to add the mime type. In a text editor, open the file in the Documents folder in %UserProfile%\Documents\IISExpress\config\applicationhost.config
Find the line that looks like this:
<mimeMap fileExtension=".woff" mimeType="font/x-woff" />
I would recommend changing it, since the official MIME type has changed, but despite the fact that he just copied this line and added a new one, and change the Extension file to .woff2 in the new one. Here is my modified file (with fixed MIME types)
<mimeMap fileExtension=".woff" mimeType="application/font-woff" /> <mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
palehorse Apr 07 '15 at 22:13 2015-04-07 22:13
source share