I'm trying to load an easy Javascript for the Entity Print module. It should load a library defined in my theme, and a JS File.
I tried some hooks, (_page, _preprocess_html, etc) but had no chance to load the libraries for entity-print.html.twig. Also using {{ attach_library('module/library') }} didn't worked for entity print.
The only thing that worked for now was to use hook_theme to add a variable to render a variable, similar to the one used for css "entity_print_css".
Is there a way to load a library in a variable, or any way to load a library in entity print?