pub struct Stats<'a> {
    pub version: Cow<'a, str>,
    pub hash: Cow<'a, str>,
    pub time: DurationMillis,
    pub public_path: Cow<'a, str>,
    pub output_path: Cow<'a, str>,
    pub assets_by_chunk_name: HashMap<ChunkName<'a>, Vec<AssetPath<'a>>>,
    pub assets: Vec<Asset<'a>>,
    pub chunks: Vec<Chunk<'a>>,
    pub modules: Vec<Module<'a>>,
    /* private fields */
}
Expand description

Webpack stats file

Deserialized representation of the webpack v5 stats file. Will try to borrow as much as it can from the underlying buffer.

Fields

version: Cow<'a, str>

Version of webpack used for the compilation (5.x.x)

hash: Cow<'a, str>

Compilation specific hash

time: DurationMillis

Compilation time in milliseconds

public_path: Cow<'a, str>

Undocumented by webpack

output_path: Cow<'a, str>

path to webpack output directory

assets_by_chunk_name: HashMap<ChunkName<'a>, Vec<AssetPath<'a>>>

Chunk name to emitted asset(s) mapping

assets: Vec<Asset<'a>>chunks: Vec<Chunk<'a>>modules: Vec<Module<'a>>

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.