How would you approach loading disk files?

I need some ideas as to how to load textures from the disk into Phaser. I’m running it outside the browser so I have more control but Loader uses XHR which doesn’t allow loading disk files anyway AFAIK.

So, how can I load these files into my game? One idea I have is to turn all of them into base64 and then just load them as base64 but it sounds horribly inefficient. Do you guys have any ideas?

You can use Webpack to convert all your assets to base64 and then add them with this.textures.addBase64()