vite-manifest 0.1.0

Types for working with Vite build manifest files
Documentation
  • Coverage
  • 76.47%
    13 out of 17 items documented1 out of 7 items with examples
  • Size
  • Source code size: 13.49 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.12 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 31s Average build duration of successful builds.
  • all releases: 31s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • JadedBlueEyes/vite-manifest
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JadedBlueEyes

vite-manifest

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.

Example

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