AspNetCore.StaticSiteHelper

A package that keeps your static website free of boilerplate ASP.NET Core files.


Keywords
asp.net, core, static
Install
Install-Package AspNetCore.StaticSiteHelper -Version 1.0.9

Documentation

ASP.NET Core Static Site Helper

Build status

Used by the ASP.NET Core static web template.

MimeType mappings

All standard mime types defined here by ASP.NET Core are enabled by default, but you can modify the supported file extensions/mime types.

By dropping a JSON file in the root of the project (not wwwroot) called mimetypes.json you can control the behavior. Here's an example:

{
  ".foo": "text/plain",
  ".vsix": "application/octet-stream"
}

You can use this file to modify extension mappings or create new ones. A rebuild of the project might be required for any changes to take effect after modifying the file.