GetVirtualFileSources getting called twice?

Took a stab at implementing an override of GetVirtualFileSources method with minifiers, and noticed that the method is called twice on startup. On the second call, the memfs that is injected is not in the list that was modified in the first pass.


If they’re not already assigned, it’s called to populate the writable VirtualFiles by searching for the FileSystem Provider.

What’s not working?

It works, just that when it is called the 2nd time, the memfs that was added to the list in the 1st pass isn’t there, so all the html/css/js files are re-scanned and processed. Little bit time consuming.

We should now be saving an iteration in this commit, change is also available from v4.0.55 on MyGet.

excellent, will check it out.