This project is not covered by Drupal’s security advisory policy.

Allows optional assets in library definitions.

Post-Installation

Add the optional library to the library definition in your module's libraries.yml file as shown below

global:
  version: 1.x
  css:
    theme:
      dist/app.css: { }
      dist/app-optional.css: { optional: true }
  js:
    dist/app.js: { }
    dist/app-optional.js: { optional: true }
  dependencies:
    - core/jquery
    - core/drupal
    - core/drupalSettings
    - core/once

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Developer tools
  • Created by yoerioptr on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases