Migrating features from runtime to build time is actually very trendy. It can be seen in the rise of static blogging platforms such as Jekyll or Hugo. It’s also an undergoing process in the Java ecosystem, with frameworks such as Quarkus and Micronaut, which among others, move away from traditional reflection to an alternative relying on classes generated at compile-time. Everything that can be done at build time should be, in the context of high-performance requirements, or just to save on the cloud bill. Minification is a way to do that for static text resources.