# Class WebpackStats

For loading and accessing stats data from webpack compile

- Defined in node/webpack-stats.ts:7

#####
Index

### Constructors

constructor

### Properties

_stats

### Accessors

allChunkNames
stats

### Methods

getChunkAssetFilename
load

## Constructors

### constructor

- new WebpackStats(): WebpackStats

- #### Returns WebpackStats

  - Defined in node/webpack-stats.ts:10

## Properties

### `Private` _stats

_stats: any

- Defined in node/webpack-stats.ts:8

## Accessors

### allChunkNames

- get allChunkNames(): string[]

- names of all chunks

  #### Returns string[]

  an array of chuck names of assets

  - Defined in node/webpack-stats.ts:33

### stats

- get stats(): any

- The raw stats data as loaded

  #### Returns any

  webpack status object

  - Defined in node/webpack-stats.ts:41

## Methods

### getChunkAssetFilename

- getChunkAssetFilename(name, ext): any[]

- 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

  - Defined in node/webpack-stats.ts:52

### load

- load(): void

- 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

  - Defined in node/webpack-stats.ts:23