Why is this libraries-override configuration not working?

Created on 23 August 2023, about 2 years ago
Updated 25 August 2023, about 2 years ago

I am trying to override the user.js using the libraries-override option in *.info.yml file in a custom module. I have tried several different options and I know I am doing something wrong. Example of what I have tried:

libraries-override:
  user/drupal.user:
   js:
     user.js: my_password_requirements.js
libraries-override:
  drupal/user:
   js:
     user.js: my_password_requirements.js

The custom module pulls the values for the constraints for displaying as requirements instead of using the hard coded values; this parts works. However, I can't override the user.js file.

I have read the documentation on drupal.org and followed some examples, but I am missing something. Can anyone assist me?

πŸ’¬ Support request
Status

Closed: works as designed

Version

9.5

Component
Asset libraryΒ  β†’

Last updated 20 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States kdmdrupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024