I’m using the new .NET 8 Web App template, which creates a primary server project, and a client WASM project.
For the client WASM project, it’s working as expected in that when communicating with the server, client side functions are done instantly client side. However, for any images in the wwwroot folder, these are fetched from the server.
Is there any way to make images and assets in wwwroot part of the WASM file(s), so they don’t need to be fetched from the server? I realize I can set up image caching, but this seems a band aid fix, and I’d also like it that the full client side app is downloaded in one go, including the images, for a smoother user experience.
How would I go about this?