A single asset included in the bundle.

Returned as part of BundleSize.assets.

interface BundleAsset {
    gzip: number;
    name: string;
    size: number;
    type: string;
}

Properties

Properties

gzip: number

Gzip-compressed size in bytes

name: string

Asset identifier (e.g. 'main')

size: number

Minified size in bytes

type: string

Asset type (e.g. 'js', 'css')