Skip to main content

Crate axum_vite

Crate axum_vite 

Source

Re-exports§

pub use include_dir;

Modules§

frameworks

Macros§

embedded_dir
Embeds a directory at compile time in release builds; returns None in debug builds.

Structs§

DevServerHandle
A handle to a running Vite dev server child process.
Dir
A directory.
EntryAssets
Resolved asset paths for the JS entry point of a Vite project.
ViteConfig
Configuration for the Vite dev server proxy and asset serving.

Functions§

hmr_injection_middleware
Middleware that injects Vite HMR scripts into HTML responses in dev mode.
router
serve_asset
serve_index
Serves the SPA shell (index.html).
spa_router
Convenience router for a single-page application.
spawn_dev_server
Spawns the Vite dev server as a child process.