You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config/README.md
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ module.exports = {
81
81
82
82
Build the app in multi-page mode. Each "page" should have a corresponding JavaScript entry file. The value should be an object where the key is the name of the entry, and the value is either:
83
83
84
-
- An object that specifies its `entry`, `template`and `filename`;
84
+
- An object that specifies its `entry`, `template`, `filename`and `title`;
85
85
- Or a string specifying its `entry`.
86
86
87
87
```js
@@ -93,7 +93,10 @@ module.exports = {
93
93
// the source template
94
94
template:'public/index.html',
95
95
// output as dist/index.html
96
-
filename:'index.html'
96
+
filename:'index.html',
97
+
// when using title option,
98
+
// template title tag needs to be <title><%= htmlWebpackPlugin.options.title %></title>
99
+
title:'Index Page'
97
100
},
98
101
// when using the entry-only string format,
99
102
// template is inferred to be `public/subpage.html`
0 commit comments