We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9aa3de commit 20bbff0Copy full SHA for 20bbff0
packages/@vue/cli-service/lib/config/app.js
@@ -125,7 +125,7 @@ module.exports = (api, options) => {
125
// inject html plugin for the page
126
const pageHtmlOptions = Object.assign({}, htmlOptions, {
127
chunks: ['chunk-vendors', 'chunk-common', name],
128
- template: fs.existsSync(template) ? template : defaultHtmlPath,
+ template: fs.existsSync(template) ? template : (fs.existsSync(htmlPath) ? htmlPath : defaultHtmlPath),
129
filename
130
})
131
0 commit comments