# Add a script to Discourse's webpack

**URL:** <https://meta.discourse.org/t/add-a-script-to-discourses-webpack/314394>\
**Category:** Development\
**Tags:** unsupported-install\
**Created:** [July 1, 2024, 4:40am UTC](https://meta.discourse.org/t/add-a-script-to-discourses-webpack/314394 "2024-07-01T04:40:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Post date:** [July 1, 2024, 5:40pm UTC](https://meta.discourse.org/t/add-a-script-to-discourses-webpack/314394/4 "2024-07-01T17:40:04Z")

</div>

> [@david](#):
>
> Instead, you can create an initializer in a Discourse theme/plugin, and use that to run the `loadSprites()` code.

Is there a guide for this? Haven’t tried that before.

---

_[View the full topic](https://meta.discourse.org/t/add-a-script-to-discourses-webpack/314394)._
