This repository has been archived by the owner on May 15, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d71db76
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.
This commit makes webpack inline the runtime into the HTML pages using
html-webpack-inline-chunk-plugin
. This prevents us from making an extra HTML request to load the small runtime. Corresponding article sectionNote: the runtime is inlined, but
runtime.js
is still generated. If you don’t like this, just remove it using e.g.clean-webpack-plugin
.html-webpack-inline-chunk-plugin
is a third-party package – so if you switched to this commit from elsewhere, you’ll likely want to runnpm install
.Generated files
Before:
After:
The
.html
files increased in size becauseruntime.js
is now inlined into them.