You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/plugin-lighthouse/README.md
+49-13Lines changed: 49 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -119,24 +119,27 @@ export default {
119
119
120
120
## Flags
121
121
122
-
The plugin accepts a second optional argument, `flags`.
122
+
The plugin accepts an optional second argument, `flags`.
123
123
124
-
`flags` is the Lighthouse [CLI flags](https://github.com/GoogleChrome/lighthouse/blob/7d80178c37a1b600ea8f092fc0b098029799a659/cli/cli-flags.js#L80) as a JS object.
124
+
`flags` is a JavaScript object containing Lighthouse [CLI flags](https://github.com/GoogleChrome/lighthouse/blob/7d80178c37a1b600ea8f092fc0b098029799a659/cli/cli-flags.js#L80).
125
125
126
-
Within the flags object a couple of other external configuration files can be referenced. E.g. `configPath` , `preset` or `budgetPath` reference external `json` or JavaScript files.
126
+
Within the `flags` object, external configuration files can be referenced using options like `configPath` , `preset`, or `budgetPath`. These options allow Lighthouse to load custom configurations, audit presets, or performance budgets from external `json` or JavaScript files.
127
127
128
-
For a complete list the [official documentation of CLI flags](https://github.com/GoogleChrome/lighthouse/blob/main/readme.md#cli-options)
128
+
For a complete list of available options, refer to [the official Lighthouse documentation](https://github.com/GoogleChrome/lighthouse/blob/main/readme.md#cli-options).
129
129
130
130
> [!TIP]
131
-
> If you are not used to work with the Lighthouse CLI you would pass flags like this:
131
+
> If you are new to working with the Lighthouse CLI, flags can be passed like this:
@@ -149,14 +152,47 @@ For a complete list the [official documentation of CLI flags](https://github.com
149
152
150
153
## Chrome Flags for Tooling
151
154
152
-
We recommend using Chrome flags for more stable runs in a tooling environment.
153
-
The [`chrome-launcher`](https://www.npmjs.com/package/chrome-launcher) package provides a set of flags dedicated to tooling that they also documented very well.
155
+
We recommend using Chrome flags for more stable runs in a tooling environment. The [`chrome-launcher`](https://www.npmjs.com/package/chrome-launcher) package offers a well-documented set of flags specifically designed to ensure reliable execution.
156
+
157
+
The latest version of `@code-pushup/lighthouse-plugin` provides `DEFAULT_CHROME_FLAGS`, a pre-configured constant that includes Chrome’s default flags for stable, headless execution out of the box. This means you do not need to specify `chromeFlags` manually unless you want to modify them.
158
+
159
+
### Default Usage
160
+
161
+
If no `chromeFlags` are provided, the plugin automatically applies the default configuration:
0 commit comments