# How to ship javascript library with plugin?

**URL:** <https://meta.discourse.org/t/how-to-ship-javascript-library-with-plugin/53190>\
**Category:** Development\
**Created:** [November 21, 2016, 12:07pm UTC](https://meta.discourse.org/t/how-to-ship-javascript-library-with-plugin/53190 "2016-11-21T12:07:04Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [April 21, 2021, 8:49am UTC](https://meta.discourse.org/t/how-to-ship-javascript-library-with-plugin/53190/9 "2021-04-21T08:49:43Z")

</div>

[GitHub - discourse/discourse-algolia: A plugin for indexing and searching your Discourse with Algolia · GitHub](https://github.com/discourse/discourse-algolia) is doing this for example, I recommend you have a look at the code, especially top of plugin.rb.

Also a small tip, in programming things always seem hard when you feel like you don’t know the effects of your actions, it’s important to know what’s going on, I recommend running this command in your console: `window.requirejs.entries` it might help you understand a few things.

---

_[View the full topic](https://meta.discourse.org/t/how-to-ship-javascript-library-with-plugin/53190)._
