glimr/vite
Vite Asset Integration
Glimr apps use Vite as their asset bundler, but templates need the correct script and link tags for both development (where Vite’s dev server handles HMR) and production (where hashed filenames come from a manifest). This module reads the Vite manifest and hot-file to emit the right tags automatically — like Laravel’s @vite() directive.
Values
pub fn tags(entry: String) -> String
Emits the <script> and <link> tags for a Vite entry
point.
In dev mode (when priv/static/hot exists), returns tags
pointing at Vite’s dev server for HMR. In production, reads
the Vite manifest to resolve hashed filenames and returns
prebuilt asset tags with a /static/ prefix.
@import(glimr/vite)
{{{ vite.tags("resources/ts/app.ts") }}}