I try to define a separate library with different name from the theme name, according to this artcle:
Adding stylesheets (CSS) and JavaScript (JS) to a Drupal 8 theme
For example a library with below details:
- Theme name: MyThemeName
- Library Name: Library A
- Library File Name: libfile.info.yml
libfile.libraries.yml
LibraryA:
version: 1.x
css:
theme:
css/Style.css: {}
And then attach this library to all page in:
MyThemeName.info.yml
libraries:
- MyThemeName/LibraryA
I would be happy to hear what the problem is, share your experiences and guide me to know what is the right way to add another library files with different name from the MyThemeName?
Thanks for any help.