Skip to content

Commit fbd060b

Browse files
authored
misc(build): update devtools 3p readme, document debug build (#16695)
1 parent 8cc4b8e commit fbd060b

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

build/build-report.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async function buildFlowReport() {
6060
format: 'iife',
6161
charset: 'utf8',
6262
bundle: true,
63-
minify: true,
63+
minify: !process.env.DEBUG,
6464
plugins: [
6565
plugins.replaceModules({
6666
[`${LH_ROOT}/flow-report/src/i18n/localized-strings.js`]: buildFlowStrings(),
@@ -117,7 +117,7 @@ export const format = {registerLocaleData, hasLocale};
117117
outfile: 'dist/report/bundle.esm.js',
118118
format: 'esm',
119119
bundle: true,
120-
minify: true,
120+
minify: !process.env.DEBUG,
121121
plugins: [
122122
plugins.replaceModules({
123123
// Exclude this 30kb from the devtools bundle for now.

build/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ To build the Lighthouse bundle for CDT and roll them into a local checkout of th
1616

1717
```sh
1818
yarn devtools
19+
DEBUG=1 yarn devtools # or use this command to skip minification
1920
```
2021

2122
One of the commands that the above runs - `yarn build-devtools` - creates these files:

core/scripts/roll-to-devtools.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,21 @@ echo "Name: Lighthouse
8686
Short Name: lighthouse
8787
Version: $PKG_VERSION
8888
Revision: $REVISION
89+
Update Mechanism: Manual
8990
URL: https://github.com/GoogleChrome/lighthouse
90-
License: Apache License 2.0
91+
License: Apache-2.0
9192
License File: LICENSE
9293
Security Critical: no
9394
Shipped: yes
9495
95-
This directory contains Chromium's version of the lighthouse report assets, including renderer." > "$fe_lh_dir/README.chromium"
96+
This directory contains Chromium's version of Lighthouse. It includes:
97+
98+
- locale strings
99+
- report assets
100+
- report renderer
101+
- worker bundle for running Lighthouse core
102+
103+
Build documentation: https://github.com/GoogleChrome/lighthouse/blob/main/build/readme.md#building-for-devtools" > "$fe_lh_dir/README.chromium"
96104

97105
echo ""
98106
echo "Done. To run the e2e tests: "

report/renderer/details-renderer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,6 @@ export class DetailsRenderer {
656656
/**
657657
* @param {LH.Audit.Details.SourceLocationValue} item
658658
* @return {Element|null}
659-
* @protected
660659
*/
661660
renderSourceLocation(item) {
662661
if (!item.url) {

0 commit comments

Comments
 (0)