File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -88,22 +88,22 @@ These are detailed further below on this page.
88
88
The Vite application HTML template:
89
89
90
90
``` html
91
- <!DOCTYPE html>
92
- <html >
91
+ <!doctype html>
92
+ <html lang = " en " >
93
93
<head >
94
94
<meta charset =" utf-8" >
95
- <link rel =" stylesheet" href =" ./base.css" >
96
- <!-- head -->
95
+ <meta name =" viewport" content =" width=device-width, initial-scale=1" >
97
96
</head >
98
- <body >
97
+ <link rel = " stylesheet " href = " /base.css " / >
99
98
<div id =" root" ><!-- element --> </div >
100
- </body >
101
99
<!-- hydration -->
102
100
<script type =" module" src =" /$app/mount.js" ></script >
103
101
</html >
104
102
```
105
103
106
- It needs to have ` head ` , ` element ` and ` hydration ` placeholders.
104
+ It needs to have ` element ` and ` hydration ` placeholders.
105
+
106
+ The ` <html> ` and ` <head> ` tags are processed by [ unhead] ( https://github.com/unjs/unhead ) .
107
107
108
108
And it must import ` /$app/mount.js ` as the main module.
109
109
Original file line number Diff line number Diff line change @@ -88,22 +88,22 @@ These are detailed further below on this page.
88
88
The Vite application HTML template:
89
89
90
90
``` html
91
- <!DOCTYPE html>
92
- <html >
91
+ <!doctype html>
92
+ <html lang = " en " >
93
93
<head >
94
94
<meta charset =" utf-8" >
95
- <link rel =" stylesheet" href =" ./base.css" >
96
- <!-- head -->
95
+ <meta name =" viewport" content =" width=device-width, initial-scale=1" >
97
96
</head >
98
- <body >
97
+ <link rel = " stylesheet " href = " /base.css " / >
99
98
<div id =" root" ><!-- element --> </div >
100
- </body >
101
99
<!-- hydration -->
102
100
<script type =" module" src =" /$app/mount.js" ></script >
103
101
</html >
104
102
```
105
103
106
- It needs to have ` head ` , ` element ` and ` hydration ` placeholders.
104
+ It needs to have ` element ` and ` hydration ` placeholders.
105
+
106
+ The ` <html> ` and ` <head> ` tags are processed by [ unhead] ( https://github.com/unjs/unhead ) .
107
107
108
108
And it must import ` $app/mount.js ` as the main module.
109
109
You can’t perform that action at this time.
0 commit comments