For loading and accessing stats data from webpack compile

Constructors

Properties

Accessors

Methods

Constructors

Properties

_stats: any

Accessors

  • get allChunkNames(): string[]
  • names of all chunks

    Returns string[]

    an array of chuck names of assets

Methods

  • Get the asset filename of a chunk by its name

    Parameters

    • name: string

      name of chunk

    • ext: string

      extension of the asset to get (".css", ".js", etc)

    Returns any[]

    array of strings

  • Load webpack's stats according to WEBPACK_DEV env.

    • WEBPACK_ENV defined - load from .etmp dir
    • otherwise - load from dist/server dir

    '@remarks' will look for the data under dir by env XARC_CWD or process.cwd()

    Returns void