Has someone already used WebJars (https://www.webjars.org 
<https://www.webjars.org/>) in a plugin to refer to JS libraries? 

While it seems to be simple to bundle it with my HPI file (it is then part of 
the WEB-INF/lib folder) I do not see an easy way to refer to the containing 
css/js files afterwards, since they are located in a jar file that seems to be 
not accessible in Jenkins UI. 

I can reference my local plugin web resources with 

<link rel="stylesheet" 
href="${resURL}/plugin/warnings-ng/css/font-awesome/css/fontawesome.min.css"/>

But the same does not work when the fontawesome.min.css is part of the other 
webjar. (Or which path do I need here?)



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/740C8BC3-AD97-4A4B-9148-8DF5547480F7%40gmail.com.

Reply via email to