Agrega un script al webpack de Discourse

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