According to https://sqndr.github.io/d8-theming-guide/libraries/libraries-and-twig.html, you can include a library within twig template to only load it on specific pages using {{ attach_library('theme/library') }}
. This appears to be for libraries included in mytheme.libraries.yml.
Is there a way to use this to include a library from sites/all/libraries? It seems silly to add a library to my theme folder when it is already available globally.
/sites/all/libraries
, this looks like the folder name the Libraries API module used in D7, which is not ported to D8 yet./libraries
by hand. But these libraries can be used only by the module that instructed you to do so, because no one else knows the location of the files.