# How to use enqueue()->localize() in vite/sage11

**URL:** https://discourse.roots.io/t/how-to-use-enqueue-localize-in-vite-sage11/29467
**Category:** vite
**Tags:** sage11
**Created:** 2025-04-10T12:08:44Z
**Posts:** 7
**Showing post:** 2 of 7

## Post 2 by @mikespainhower — 2025-04-10T14:00:30Z

> [@Where is the hot reloading dev site when using Vite?](https://discourse.roots.io/t/where-is-the-hot-reloading-dev-site-when-using-vite/29126/18):
>
> Related to this new Vite approach, how does one localize a script now that the Bud bundle('app')-\>enqueue()-\>localize method is gone? setup.php now injects with the wp\_head hook rather than wp\_enqueue\_scripts and I’m not sure how to go about it.

---

_[View the full topic](https://discourse.roots.io/t/how-to-use-enqueue-localize-in-vite-sage11/29467)._
