Skip to content

misc(build): minify report javascript for lightrider report generator#9823

Merged
connorjclark merged 7 commits into
masterfrom
improve-viewer-bundle
Oct 13, 2019
Merged

misc(build): minify report javascript for lightrider report generator#9823
connorjclark merged 7 commits into
masterfrom
improve-viewer-bundle

Conversation

@connorjclark

@connorjclark connorjclark commented Oct 11, 2019

Copy link
Copy Markdown
Collaborator

cont. #9596 (I meant to just update that PR, but apparently I don't know how to push to a PR branch ...)

I updated @wardpeet's work with master, and also minified the assets for the LR report generator. I verified the report still works with a terser pass (if we rely on function or class names, we'd have to pass special flags, but it seems we don't for the report).

Can confirm this saves a lot of bytes.

image

dist/lightrider/report-generator-bundle.js 247 KB -> 152 KB (38%)
dist/viewer/src/viewer.js 309 KB -> 213 KB (31%) (done in #9596)

@googlebot

Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

Comment thread package.json
{
"path": "./dist/viewer/src/viewer.js",
"maxSize": "76 kB"
"maxSize": "65 kB"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is 58 now.

Comment thread package.json
},
{
"path": "./dist/lightrider/report-generator-bundle.js",
"maxSize": "50 kB"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is 40 now

Comment thread package.json Outdated
"@types/update-notifier": "^1.0.2",
"@types/ws": "^4.0.1",
"@types/yargs": "^8.0.2",
"@wardpeet/brfs": "^2.1.0-0",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wardpeet did you rename/republish to wardpack?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha 😂, should I? 😛

@connorjclark connorjclark Oct 11, 2019

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need, but if you want to ;)

I was mostly making sure you didn't publish to a new package w/ possible updates

@wardpeet

wardpeet commented Oct 11, 2019

Copy link
Copy Markdown
Collaborator

hehe, you should install https://hub.github.com/, it makes it super easy to checkout prs from other origins. Cool that it's getting merged in!

@googlebot

Copy link
Copy Markdown

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

@connorjclark connorjclark changed the title misc(build): minify report javascript misc(build): minify report javascript for lightrider report generator Oct 11, 2019
@googlebot

Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@connorjclark

connorjclark commented Oct 11, 2019

Copy link
Copy Markdown
Collaborator Author

@wardpeet, if you consent, can you say the magic phrase: @googlebot I consent.

@wardpeet

Copy link
Copy Markdown
Collaborator

@googlebot I consent

@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@paulirish

Copy link
Copy Markdown
Member

@googlebot i consent, too.

@wardpeet wardpeet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants