Ability to refer to a third party CSS and the associated images

  • A third-party vendor library, namely leaflet.js (and other files like leaflet.css and few images) is a part of my custom plugin.

    The leaflet.css references certain images lying in the ./images folder (relative to leaflet.css) During the NodeBB build, the contents of the leaflet.css are minfied and merged in stylesheet.css.

    But the ./images folder is not copied to the build directory. What do I need to do so that the leaflet.css should be able to reference the images folder. Do I need to make some entry in my plugin.json folder?

  • Creating a soft link to the images directory works.

Suggested Topics

| | |

© 2014 – 2022 NodeBB, Inc. — Made in Canada.