# 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:** 1

<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, 4:40am UTC](https://meta.discourse.org/t/add-a-script-to-discourses-webpack/314394/1 "2024-07-01T04:40:04Z")

</div>

Hello,

I’ve never worked with webpack and my JS knowledge is poor, and I have a Discourse install running off an IP, which is “unsupported”. It works, but the icons are missing because it tries loading `http://192.168.0.22:8080/svg-sprite/192.168.0.22:8080/svg-3-c1066beb12cc75cc4c3bc42f218f381c862e7905.js` which has the icons, but failed because of the numbers. Anything else would work, such as `http://192.168.0.22:8080/svg-sprite/-/svg-3-c1066beb12cc75cc4c3bc42f218f381c862e7905.js` (you can put anything where the - is so I’m not quite sure why it exists in the first place but thats not up for me to decide).

I’m trying to get it to load the correct host, so I made a little script to do it, but thanks to webpack I’m not able to access the loader through imports:

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/3/f/43f9264be36a85da88177581157fe6660a4dd882.png)

Because of this limitation, I need to get into discourse’s webpack which is nowhere to be found. How can I add a script to the folder?

```sh
/var/discourse$ ls
shared

```

---

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