File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ Please read this resources before you enable `mobileAppIOS` option:
47
47
- Default: * npm_package_name*
48
48
- Meta: ` title `
49
49
50
+ ** author**
51
+ - Default: * npm_package_author_name*
52
+ - Meta: ` author `
53
+
50
54
** description**
51
55
- Default: * npm_package_description*
52
56
- Meta: ` description `
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ function generateMeta (_options) {
19
19
// Defaults
20
20
const defaults = {
21
21
name : process . env . npm_package_name ,
22
+ author : process . env . npm_package_author_name ,
22
23
description : process . env . npm_package_description ,
23
24
charset : 'utf-8' ,
24
25
viewport : undefined ,
@@ -103,6 +104,11 @@ function generateMeta (_options) {
103
104
this . options . head . meta . push ( { hid : 'apple-mobile-web-app-title' , name : 'apple-mobile-web-app-title' , content : title } )
104
105
}
105
106
107
+ // Author
108
+ if ( options . author && ! find ( this . options . head . meta , 'name' , 'author' ) ) {
109
+ this . options . head . meta . push ( { hid : 'author' , name : 'author' , content : options . author } )
110
+ }
111
+
106
112
// description meta
107
113
if ( options . description && ! find ( this . options . head . meta , 'name' , 'description' ) ) {
108
114
this . options . head . meta . push ( { hid : 'description' , name : 'description' , content : options . description } )
You can’t perform that action at this time.
0 commit comments