Follow-up to #2642046: libraries-override does not update drupalSettings libraries array


I haved added a global-styling library in my theme. This library has two other dependencies.

  version: VERSION
      css/core/base.css: {}
      css/core/base-drupal.css: {}
      css/core/iehacks.min.css: { weight: 999, browsers: { IE: 'lte IE 7', '!IE': false }, minified: true }
   - yaml/html5shiv.printshiv
   - yaml/yaml.focusfix

Now if you load the source code and search for html5shiv.printshiv you will not find this library in the drupalSettings libraries array.

This looks like a bug to me, but I don't know why this array exists in drupalSettings.

Proposed resolution

Add all libraries to the array and not just a few.

Remaining tasks

User interface changes


API changes


Data model changes



hass created an issue. See original summary.

hass’s picture

Issue summary: View changes

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.