-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build - refactor background process to use html #10769
Conversation
Builds ready [b3cda44]
Page Load Metrics (506 ± 53 ms)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Made a couple of corrections to comments, but aside from that everything seems good.
@@ -80,13 +80,34 @@ const copyTargetsDev = [ | |||
pattern: '/chromereload.js', | |||
dest: ``, | |||
}, | |||
// empty files to suppress missing file errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, that's an interesting idea!
I had been meaning to address this warning by updating the build script to use these dependency bundles in development too, rather than just in prod. But I never got around to it. This seems like a simpler solution for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this solution is sort of dumb and silly but saves a good chunk of code dedicated to conditionally flipping on and off script imports. simplicity won me over here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ (discussed on Discord, but for now the empty.js
file workaround is preferable to the alternative, which can be accomplished in a separate task)
@Gudahtt left some nits, but ran through smoke tests on both dev
and prod
builds and all looked good to me!
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Builds ready [6e49fcc]
Page Load Metrics (575 ± 43 ms)
|
aligns background process entry point to match format of the other entry points (ui/home, ui/popup, ...). this will enable the "flat file" build refactor
additonally, instead of logic for adding/removing scripts from the build, i opted for copying empty files to replace the expected files