-
Notifications
You must be signed in to change notification settings - Fork 685
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
Integrated Webpack HTML Plugin. #1595
Conversation
Metrics coming soon. |
packages/venia-concept/template.html
Outdated
<head> | ||
<meta charset="utf-8" /> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
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.
Note to my self: need to check the meta tags in prev templates and try getting them into either here or the app logic.
|
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.
First of all, this is really impressive. It's a big speed boost. I'm excited for the change.
Second, thank you for investigating this so quickly and so well--it's a major change to the architecture and this is a bold move.
Third, I would love to see comparison screenshots or a link to a comparison test at webpagetest.org.
Fourth, I added a TODO
comment in one place. Other than that, I think this is ready to merge, once other devs have taken a look at it.
Oh, I also would like to see as much as possible from open-document.mst implemented in the HTML template. At the very least:
|
Here are the results with changes: https://www.webpagetest.org/result/190826_KQ_b4d2b362747562e759bc975c5459d407/ |
@zetlen 2 things,
Any thoughts on that? |
Description
Added Webpack HTML Plugin to generate HTML at compile instead of runtime with UPWARD. HTML will be auto-generated using a template file that carries the boilerplate. In this case
template.html
.Related Issue
Closes #1529.
Verification Steps
index.html
file in thedist
folder insidevenia-concept
.index.html
file irrespective of which page you are in. The previous implementation used to download a different file for different page.Screenshots / Screen Captures (if appropriate)
Home Page:
Category Page:
Product Page:
Checklist