File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
packages/@vue/cli-service/lib/config Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ module.exports = (api, options) => {
182
182
entry,
183
183
template = `public/${ name } .html` ,
184
184
filename = `${ name } .html` ,
185
- chunks
185
+ chunks,
186
+ ...customHtmlOptions
186
187
} = normalizePageConfig ( multiPageConfig [ name ] )
187
188
// inject entry
188
189
webpackConfig . entry ( name ) . add ( api . resolve ( entry ) )
@@ -199,12 +200,17 @@ module.exports = (api, options) => {
199
200
: defaultHtmlPath
200
201
201
202
// inject html plugin for the page
202
- const pageHtmlOptions = Object . assign ( { } , htmlOptions , {
203
- chunks : chunks || [ 'chunk-vendors' , 'chunk-common' , name ] ,
204
- template : templatePath ,
205
- filename : ensureRelative ( outputDir , filename ) ,
206
- title
207
- } )
203
+ const pageHtmlOptions = Object . assign (
204
+ { } ,
205
+ htmlOptions ,
206
+ {
207
+ chunks : chunks || [ 'chunk-vendors' , 'chunk-common' , name ] ,
208
+ template : templatePath ,
209
+ filename : ensureRelative ( outputDir , filename ) ,
210
+ title
211
+ } ,
212
+ customHtmlOptions
213
+ )
208
214
209
215
webpackConfig
210
216
. plugin ( `html-${ name } ` )
You can’t perform that action at this time.
0 commit comments