hook_library_info() and added to the page only with
#attached attribute of the render array.
But what best practices are recommended to define external libraries? Should we create
/libraries directory and upload library there? Or should they be managed by the module using composer?
hook_library_info() in Drupal 8?