> For the complete CircleCI developer hub index, see [llms.txt](https://circleci.com/developer/llms.txt)

# packtracker/report

Send webpack bundle stats to packtracker for analysis.

## Jobs

### report

This job reports your webpack bundle stats to the packtracker.io service.

For this job to be able to authenticate with the packtracker service, you must additionally
add the `PT_PROJECT_TOKEN` environment variable to your CircleCI project configuration.
The project token can be found in the packtracker project settings.


| Parameter | Type | Default | Description |
|---|---|---|---|
| `selected_resource_class` | enum | medium | Resource class to be used for the executor |
| `project_root` | string |  | The path to the directory containing your package.json |
| `webpack_config` | string | ./webpack.config.js | The path to your webpack configuration file (if present) |
| `exclude_assets` | string |  | Compiled as RegExp and passed as the [excludeAssets configuration in the webpack stats config](https://webpack.js.org/configuration/stats/#stats) (only available to webpack version 3.5.0+) |

## Executors

### reporter

| Parameter | Type | Default | Description |
|---|---|---|---|
| `selected_resource_class` | enum | medium | Resource class to be used for the executor |

## Examples

### simple

Simplest use case, leveraging default webpack config location and root project path.

```yaml
version: 2.1
orbs:
  packtracker: packtracker/report@x.y.z
workflows:
  packtracker:
    jobs:
      - packtracker/report
```

### custom_webpack_config_path

Custom webpack config location (for example Ruby on Rails).

```yaml
version: 2.1
orbs:
  packtracker: packtracker/report@x.y.z
workflows:
  packtracker:
    jobs:
      - packtracker/report:
          webpack_config: ./config/webpack/production.js
```

### custom_nested_config_path

Custom project path, useful for monorepo situations.

```yaml
version: 2.1
orbs:
  packtracker: packtracker/report@x.y.z
workflows:
  packtracker:
    jobs:
      - packtracker/report:
          project_root: ./packages/internal_package
```

### custom_resource_class

Custom resource class if your build is running out of memory.

```yaml
version: 2.1
orbs:
  packtracker: packtracker/report@x.y.z
workflows:
  packtracker:
    jobs:
      - packtracker/report:
          selected_resource_class: medium+
```

### exclude_some_assets_from_reporting

Custom resource class if your build is running out of memory.

```yaml
version: 2.1
orbs:
  packtracker: packtracker/report@x.y.z
workflows:
  packtracker:
    jobs:
      - packtracker/report:
          exclude_assets: main|pack
```