| Crates.io | vite-manifest |
| lib.rs | vite-manifest |
| version | 0.1.0 |
| created_at | 2025-06-10 22:09:43.200182+00 |
| updated_at | 2025-06-10 22:09:43.200182+00 |
| description | Types for working with Vite build manifest files |
| homepage | https://github.com/JadedBlueEyes/vite-manifest |
| repository | https://github.com/JadedBlueEyes/vite-manifest |
| max_upload_size | |
| id | 1707807 |
| size | 13,986 |
A Rust library for parsing and working with Vite build manifest files.
Vite generates a manifest.json file during build that maps original source files to their corresponding output files, including information about dependencies, CSS files, and chunk relationships.
use vite_manifest::{parse_manifest, ManifestChunk};
let json = r#"{
"src/main.js": {
"file": "assets/main-abc123.js",
"src": "src/main.js",
"isEntry": true,
"css": ["assets/main-def456.css"]
}
}"#;
let manifest = parse_manifest(json)?;
let main_chunk = manifest.manifest().get("src/main.js").unwrap();
println!("Output file: {}", main_chunk.file);
License: MIT OR Apache-2.0