'Keyclock 17.0.0 - Quarkus theme with npm packages

I used keycloak legacy theme implementation with Vuejs. But with the keycloak 17.0 (Quarkus) not working as expected. How can we add npm packages to keycloak theme?

In keycloak legacy, we can use like below method to add npm packages.

For login, admin console, and old account console

cd src/main/resources/theme/keycloak/common/resources
npm install some-package-name@version
git add package-lock.json
cd -

But this methodologic is not working with the keycloak new version.

more info: https://github.com/keycloak/keycloak/blob/main/themes/UPDATING-NODE-MODULES.md



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source