Code like this
<link rel="stylesheet" href="~/dist/vendor.css" asp-append-version="true" />
<link rel="stylesheet" href="~/dist/main.css" asp-append-version="true" />
started on IIS Express requests the files using IIS Express port, when I need return those files from webpack devserver that works on another port.
There is an article how to "switch" configurations and "put" required port to <link> and <script> references, but here should be much more easy to instruct IIS Express (or self hosted ASP Core app) to proxy requests for css and js.
Unfortunatly this doesn't work (has no effect):
<system.net>
<defaultProxy>
<proxy
proxyaddress="http://localhost:55510"
bypassonlocal="false"
/>
<!--<bypasslist>
<add address="^((?!\/dist\/).)*$" />
</bypasslist>-->
</defaultProxy>
</system.net>
How to configure IISEXpress or (selfhosted app) to proxy requests for /dist/*.js and /dist/*.css to the webpack devserver?
PS It seems those developers who are working with VS+webpack/devserver prefer to configure webpack devserver to proxy requests for html/json/images/fonts to IISExpress (solving the same way but from another end). Why?