• Icon: Improvement Improvement
    • Resolution: Not A Defect
    • Icon: Major Major
    • js-builder
    • Jenkins 1.642.4
      @jenkins-cd/js-builder: 0.0.29

      While playing around with bootstrap less files and css adjuncts. i came to the conclusion that glyphicons can not be loaded, even they are in the same adjunct folder:
      There is my less & css file:
      \target\classes\org\jenkins\ui\jsmodules\css\bootstrapprefix.less
      same spot for the glyphicon font:
      \target\classes\org\jenkins\ui\jsmodules\css\glyphicons-halflings-regular.woff2

      I can load js or css files, but i cant use fonts like this. To debug this i used the @icon-font-path: "fonts/"; parameter.

          [JENKINS-34277] Glyphicons wont work using CSS adjuncts

          Tom FENNELLY added a comment -

          rpionke yep ... looks like you're spot on. It should be possible to load them from a plugin's webapp dir. I'm fairly sure I've done that in the past.

          Tom FENNELLY added a comment - rpionke yep ... looks like you're spot on. It should be possible to load them from a plugin's webapp dir. I'm fairly sure I've done that in the past.

          Tom FENNELLY added a comment -

          Btw ... this is a Stapler issue from what I can see ... not really a js-modules issue per se.

          Tom FENNELLY added a comment - Btw ... this is a Stapler issue from what I can see ... not really a js-modules issue per se.

          Tom FENNELLY added a comment -

          Actually this is possible. What's needed is to add .adjunct marker files in the resource directories that contain the fonts, images etc. Once you do that, Stapler will load them just fine.

          I updated one of the js-samples and it worked fine.

          Tom FENNELLY added a comment - Actually this is possible. What's needed is to add .adjunct marker files in the resource directories that contain the fonts, images etc. Once you do that, Stapler will load them just fine. I updated one of the js-samples and it worked fine.

          Tom FENNELLY Thanks for making this easier to integrate. Before I used the workaround with the .inDir option and fonts in the webapp dir.

          Raphael Pionke added a comment - Tom FENNELLY Thanks for making this easier to integrate. Before I used the workaround with the .inDir option and fonts in the webapp dir.

          Tom FENNELLY added a comment -

          rpionke No problem. Thanks for flagging the issue.

          Tom FENNELLY added a comment - rpionke No problem. Thanks for flagging the issue.

            tfennelly Tom FENNELLY
            rpionke Raphael Pionke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: