# How to reload plugin after changing code?

**URL:** <https://forum.mautic.org/t/how-to-reload-plugin-after-changing-code/34109>\
**Category:** Product Support\
**Created:** [November 13, 2024, 10:56am UTC](https://forum.mautic.org/t/how-to-reload-plugin-after-changing-code/34109 "2024-11-13T10:56:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fisch](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fisch/32/12946_2.png) [@fisch](https://forum.mautic.org/u/fisch)\
**Post date:** [November 13, 2024, 10:56am UTC](https://forum.mautic.org/t/how-to-reload-plugin-after-changing-code/34109/1 "2024-11-13T10:56:26Z")

</div>

My Mautic version is: 5.1.0  
My PHP version is: PHP Version 8.1.2-1ubuntu2.19  
My Database type and version is: 10.6.18-MariaDB-0ubuntu0.22.04.1

I’ve made a minor change to `./docroot/plugins/GrapesJsBuilderBundle/Assets/library/js/builder.service.js`. How do I rebuild this plugin to reflect my changes?

I’ve tried clearing the cache, but that’s not enough, so I suppose the plugin has to be rebuilt somehow. `mautic:plugins:reload` does not register the changes and reports that no plugins can be updated.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [November 13, 2024, 4:19pm UTC](https://forum.mautic.org/t/how-to-reload-plugin-after-changing-code/34109/2 "2024-11-13T16:19:32Z")

</div>

`mautic:assets:generate` is generally what may be needed if JS was changed.

GrapesJS is different, though, because not native Mautic… and can be pretty ugly (see [GitHub - mautic/grapesjs-preset-mautic: GrapesJS preset configuration for the Mautic editor](https://github.com/mautic/grapesjs-preset-mautic?tab=readme-ov-file#grapesjs-preset-mautic)).

Therefore the recommended way for changes is to create a GrapesJS plugin, see [GrapesJS Builder — Mautic Developer Documentation 3.0.0 documentation](https://devdocs.mautic.org/en/5.x/themes/grapesjs.html#grapesjs-builder-plugins)

---

<div class="post-metadata">

**Author:** ![fisch](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fisch/32/12946_2.png) [@fisch](https://forum.mautic.org/u/fisch)\
**Post date:** [November 18, 2024, 11:04am UTC](https://forum.mautic.org/t/how-to-reload-plugin-after-changing-code/34109/3 "2024-11-18T11:04:33Z")

</div>

Thank you for your answer! I wish there was an easier way to configure GrapesJS.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [November 19, 2024, 11:05pm UTC](https://forum.mautic.org/t/how-to-reload-plugin-after-changing-code/34109/4 "2024-11-19T23:05:27Z")

</div>

Closed on November 19, 2024, 11:05pm UTC

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
