Libraries optional import
No security coverage
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
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.