js_example.libraries.yml

Same filename in other branches
  1. 3.x modules/js_example/js_example.libraries.yml
  2. 8.x-1.x js_example/js_example.libraries.yml
modules/js_example/js_example.libraries.yml

File

modules/js_example/js_example.libraries.yml

View source
  1. accordion:
  2. # Starting from Drupal 10.1.2, the version information plays a critical role
  3. # in generating a unique hash for aggregated files. It is important to update
  4. # the version value whenever a referenced file undergoes changes.
  5. version: 4.0.0
  6. js:
  7. js/accordion.js: {}
  8. css:
  9. component:
  10. css/accordion.css: {}
  11. colors:
  12. version: 4.0.0
  13. css:
  14. component:
  15. css/weights.css: {}
  16. js:
  17. # We use weight as example attribute. Its usage is discouraged, though;
  18. # dependencies should instead be used.
  19. # For JavaScript files, its value can be only negative, contrarily to CSS
  20. # files for which its value can be between -50 and +50.
  21. js/colors.rgb.js: { weight: -2 }
  22. js/colors.base.js: { weight: -8 }
  23. js/colors.cmy.js: { weight: -4 }
  24. dependencies:
  25. - core/jquery
  26. - core/drupalSettings