By default, the wwwroot directory may contain static files. However, in some scenarios it may be ideal to have two directories for static files. (For example, if webpack unloads the assembly into one gitignored directory and saves some image files, favicon, etc. in a non-gitignored directory). Technically, this can be achieved by having two folders inside wwwroot, but organizationally preferred to have these folders at the root level. Is there a way to configure the underlying aspnet application to use two separate directories for static files?
source
share