Inline assets

I’d like to make a “game engine” for a certain kind of puzzle games. This engine needs to load some assets for UI (html, svg). Ideally, I’d like to inline them into my engine js file, so that the users of this engine just need to include a js file, and don’t need to bother about my assets.

I thought I could inline the assets with webpack, but it produces base64 strings, which are not supported, and apparently frowned upon :slight_smile:
So what’s the proper way to do it?