Drupal JavaScript API: The difference between drupalSettings and settings
I recently updated the Drupal documentation page on Adding assets (CSS, JS) to a Drupal theme via *.libraries.yml according to a request in the comments of that documentation page: