Commit bf62278 1 parent 4d0a515 commit bf62278 Copy full SHA for bf62278
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ const { options } = htmlWebpackPlugin;
3
3
4
4
const lang = options .lang || ' en' ;
5
5
const title = options .title ;
6
- const description = options .description ;
7
6
const mobile = options .mobile ;
7
+ const metaTags = Array .isArray (options .meta ) ? options .meta : [options .meta ];
8
8
const headHtmlSnippet = options .headHtmlSnippet ;
9
9
const unsupportedBrowser = options .unsupportedBrowser ;
10
10
const bodyHtmlSnippet = options .bodyHtmlSnippet ;
@@ -33,8 +33,8 @@ const scripts = (options.scripts || []).map(script => {
33
33
<meta charset =" utf-8" >
34
34
<meta content =" ie=edge" http-equiv =" x-ua-compatible" >
35
35
<title ><%= title %> </title ><%
36
- if (description ) { % >
37
- < meta name = " description " content = " <%= description %>" >< %
36
+ for ( let item of metaTags ) { % >
37
+ < meta< % for ( let [key, value] of Object . entries (item)){ % > < %= key % > =" <%= value %>" < % } % > >< %
38
38
} %><%
39
39
if (mobile) { % >
40
40
< meta content= " width=device-width, initial-scale=1" name= " viewport" >< %
You can’t perform that action at this time.
0 commit comments