This example will help you out with creating and describing API with jwt token authentication and role authorization using Tapir, Quill ORM, PostgreSQL, and start it as Akka-Http server.
If you need to generate virtual files and want webpack to treat them as real files, you can use a special plugin Webpack Virtual Modules. Find out how you can use the plugin for your project.