Re-exports§
pub use include_dir;
Modules§
Macros§
- embedded_
dir - Embeds a directory at compile time in release builds; returns
Nonein debug builds.
Structs§
- DevServer
Handle - A handle to a running Vite dev server child process.
- Dir
- A directory.
- Entry
Assets - Resolved asset paths for the JS entry point of a Vite project.
- Vite
Config - 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.