# Kibana not optimizing custom plugins

**URL:** <https://discuss.elastic.co/t/kibana-not-optimizing-custom-plugins/352939>\
**Category:** Kibana\
**Created:** [February 9, 2024, 1:30pm UTC](https://discuss.elastic.co/t/kibana-not-optimizing-custom-plugins/352939 "2024-02-09T13:30:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssimmons](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@ssimmons](https://discuss.elastic.co/u/ssimmons)\
**Post date:** [February 9, 2024, 1:30pm UTC](https://discuss.elastic.co/t/kibana-not-optimizing-custom-plugins/352939/1 "2024-02-09T13:30:35Z")

</div>

I'm trying to move our custom plugins from Kibana 8.6 to 8.12. On version 8.6, I can run  
`yarn knb bootstrap` and then `yarn start`. This would run the optimizer on my custom plugins and then do a hot reload of Kibana when I made changes to any of the files. This does not happen on version 8.12.0. The only way I can get my custom plugins to optimize is by running the `yarn run dev` command from within the plugin folder. The plugin will then show up in Kibana. However, if I make a change to my plugin code, Kibana will not hot reload with that change. I have to stop Kibana and run the `yarn run dev` command again and then restart Kibana to see my changes. How do I setup the hot reload feature in Kibana 8.12 for custom plugins?

---

<div class="post-metadata">

**Author:** ![ssimmons](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@ssimmons](https://discuss.elastic.co/u/ssimmons)\
**Post date:** [February 9, 2024, 4:21pm UTC](https://discuss.elastic.co/t/kibana-not-optimizing-custom-plugins/352939/2 "2024-02-09T16:21:10Z")

</div>

After a lot of Googling, I found this URL: [Plugins do not compile](https://github.com/elastic/kibana/issues/157440) , which addresses my issue. It seems you now have to run the `yarn dev --watch` command from within the custom plugin directory. Then start Kibana with the `yarn start` command. This will allow the plugin to hot reload when you save your changes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 8, 2024, 4:21pm UTC](https://discuss.elastic.co/t/kibana-not-optimizing-custom-plugins/352939/3 "2024-03-08T16:21:58Z")

</div>

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