1
- import React from 'react'
2
- import Document , { Head , Main , NextScript } from 'next/document'
1
+ import React from 'react' ;
2
+ import Document , { Main , NextScript } from 'next/document' ;
3
+ import Head from 'next/head' ;
3
4
import { Helmet } from "react-helmet" ;
4
5
5
6
export default class MyDocument extends Document {
@@ -10,16 +11,16 @@ export default class MyDocument extends Document {
10
11
// console.log(this.props.buildManifest.pages, '----------------------->>>>>>>>>>>');
11
12
return (
12
13
< html lang = "zh-cn" { ...htmlAttrs } >
14
+ < meta name = "viewport" content = "width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui" />
15
+ < link rel = "manifest" href = "static/manifest.json" />
16
+ < link rel = "icon" href = "static/img/favicon.ico" />
17
+ < link rel = "stylesheet" href = "/static/css/antd.min.css" />
13
18
< Head >
14
- < meta name = "viewport" content = "width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui" />
15
- < link rel = "manifest" href = "static/manifest.json" />
16
- < link rel = "icon" href = "static/img/favicon.ico" />
17
- < link rel = "stylesheet" href = "/static/css/antd.min.css" />
18
19
< title > Next_Project</ title >
19
- { helmet . title . toComponent ( ) }
20
- { helmet . meta . toComponent ( ) }
21
- { helmet . link . toComponent ( ) }
22
20
</ Head >
21
+ { helmet . title . toComponent ( ) }
22
+ { helmet . meta . toComponent ( ) }
23
+ { helmet . link . toComponent ( ) }
23
24
< body { ...bodyAttrs } >
24
25
< Main />
25
26
</ body >
0 commit comments