Stapler has a mechanism called adjuncts that works similarly. For example https://github.com/stapler/stapler-adjunct-jquery
/B Den lör 26 okt. 2019 kl 13:03 skrev Ullrich Hafner <[email protected] >: > Has someone already used WebJars (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 > <https://groups.google.com/d/msgid/jenkinsci-dev/740C8BC3-AD97-4A4B-9148-8DF5547480F7%40gmail.com?utm_medium=email&utm_source=footer> > . > -- *Robert Sandell* Software Engineer CloudBees, Inc. [image: CloudBees-Logo.png] <http://www.cloudbees.com/> E: [email protected] Twitter: robert_sandell -- 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/CALzHZS3qvKA2uOSNk8thvhOxtgMAKpYMDCqrLK2V-FshvcSqYQ%40mail.gmail.com.
