Skip to content

Commit

Permalink
compact traceviewer-js to reduce filesize of lighthouse-background
Browse files Browse the repository at this point in the history
and FWIW this traceviewer submodule hash is 4959b8b832af4f0d91cf1b2bc9bed10fbcccad2e
  • Loading branch information
paulirish committed Dec 2, 2016
1 parent 3448105 commit 3f9886d
Show file tree
Hide file tree
Showing 164 changed files with 166 additions and 26,495 deletions.
4 changes: 3 additions & 1 deletion lighthouse-core/scripts/build-traceviewer-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ function convertImport(src) {
transformed = transformed.replace('if (new.target)', 'if (!(this instanceof Slice))');
}
transformed = babel.transform(transformed, {
plugins: ['transform-es2015-destructuring']
plugins: ['transform-es2015-destructuring'],
comments: false, // Output comments in generated output.
compact: true // Do not include superfluous whitespace characters and line terminators.
}).code;
return transformed;
}
Expand Down
185 changes: 1 addition & 184 deletions lighthouse-core/third_party/traceviewer-js/base/base.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 1 addition & 85 deletions lighthouse-core/third_party/traceviewer-js/base/base64.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 1 addition & 41 deletions lighthouse-core/third_party/traceviewer-js/base/category_util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3f9886d

Please sign in to comment.