Thursday, October 27, 2011

Add Mimetype to IISExpress

  1. Open a windows command prompt
  2. Switch to the directory that IIS Express is installed in (on my 64 bit Windows 7 system, it was installed in C:\Program Files (x86)\IIS Express)
  3. Execute the following command:
appcmd set config /section:staticContent /+[fileExtension='.less',mimeType='text/css']