Out of curiosity, is there a simple way to configure ASP.NET web site hosted on IIS both locally (IIS Express) and in production (Azure Web Sites) so that it serves LESS files for local development but not when deployed to production? Something like:

<system.webServer>
  <staticContent>
    <mimeMap fileExtension=".less" mimeType="text/css" **domain="localhost"** />
  </staticContent >
</system.webServer>

(I know that something that simple isn't available and even probably couldn't be, but what would be the simplest way to achieve the trick? URL rewrite module?)

Related posts

Recent Viewed