WebApp customization via library?

Is it possible to have a library with the /resources/META-INF/webjars/…/** that I can drop in any Spring Boot or Camunda Run project to load custom JS?

I am trying to make a SSO library that also includes the /logout/ customization/fix.

Any ideas are appreciated.