-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Add <!doctype html>
to html snippets
#1866
Comments
webpack website shows in its examples the minimal requirements to wort with it, specify details about other technologies are no essential. |
@montogeek I understand that examples need to be kept as concise as possible. It worries me that a DOCTYPE is considered a "specific detail". If other devs are building their products/prototypes based on these examples they could find themselves in unnecessary trouble. |
|
I'm with @rikschennink here. If you're providing an entire HTML file, I would expect those to be complete. |
+1 |
We are not providing an entire HTML file, just the minimal HTML to show how webpack works |
@montogeek A minimal HTML file (that is still valid) really should have a I'm reading here that it should also have a |
Can you please submit a PR to add it in all necessary examples? Not those generated by plugins. |
@montogeek happy to do that somewhere this week or the next. |
@rikschennink this is a really good point. I'm probably responsible for this mishap, so I've taken the liberty to include it for our v4 Guides (#1862) and I will open a quick PR (#1868) for the current docs as well. You're totally right: the examples should be working and correct, even if they're minimal examples. Thanks for the good catch! |
As pointed out in Issue #1866, this should be added for valid HTML.
@TheDutchCoder Fantastic! Thanks for taking the time to fix it Reinier. I'll remove it from my todo list 🙂 |
It would b good to check the rest of the site and try to spot places where this was also happening and fix it. |
<!doctype html>
to html snippets
This was solved by #1868 Thanks everyone! |
Yesterday I blindly copied the Webpack "Getting Started" index.html page to build a quick prototype. The next 50 minutes I'm debugging weird layout bugs. It seems the example snippet does not contain a DOCTYPE and I forgot to add it myself.
Maybe have it there by default?
The text was updated successfully, but these errors were encountered: