Skip to content

Commit

Permalink
fix(utils): Webpack metrics - update description
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Sep 9, 2024
1 parent 8a38bd1 commit 00b5069
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/utils/src/webpack/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@ type WebpackMetrics = Partial<Record<Metric, MetricConfig>> & {
export const metrics: WebpackMetrics = {
[Metric.BUNDLE_SIZE]: {
label: 'Bundle Size',
description: 'The total file size of the assets generated or processed by the bundler',
description: 'Total file size of the assets generated or processed by the bundler',
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
type: MetricTypes.FileSize,
},
[Metric.INITIAL_SIZE_JS]: {
label: 'Initial JS',
description: 'The total file size of the JavaScript initial chunks',
description: 'Total file size of the JavaScript initial chunks',
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
type: MetricTypes.FileSize,
},
[Metric.INITIAL_SIZE_CSS]: {
label: 'Initial CSS',
description: 'The total file size of the CSS initial chunks',
description: 'Total file size of the CSS initial chunks',
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
type: MetricTypes.FileSize,
},
[Metric.CACHE_INVALIDATION]: {
label: 'Cache Invalidation',
description:
'The ratio between the total of the changed assets and the total file size(Bundle Size)',
'Ratio between the total file size of the changed assets and the total file size(Bundle Size)',
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
type: MetricTypes.Percentage,
biggerIsBetter: null,
skipDelta: true,
},
[Metric.CHUNK_COUNT]: {
label: 'Chunks',
description: 'The total number of chunks generated by the bundler',
description: 'Total number of chunks generated by the bundler',
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
type: MetricTypes.Numeric,
biggerIsBetter: null,
Expand All @@ -50,14 +50,14 @@ export const metrics: WebpackMetrics = {
},
[Metric.MODULE_COUNT]: {
label: 'Modules',
description: 'The total number of bundled modules',
description: 'Total number of bundled modules',
url: 'https://relative-ci.com/documentation/metrics-and-data#modules-1',
type: MetricTypes.Numeric,
biggerIsBetter: null,
},
[Metric.DUPLICATE_MODULES_COUNT]: {
label: 'Duplicate Modules',
description: 'The total number of modules that belong to more than one chunk',
description: 'Total number of modules included into more than one chunk',
url: 'https://relative-ci.com/documentation/metrics-and-data#modules-1',
type: MetricTypes.Numeric,
biggerIsBetter: false,
Expand Down

0 comments on commit 00b5069

Please sign in to comment.