Skip to content

Commit 20bbff0

Browse files
MarvinXuAkryum
authored andcommitted
fix: default html template, closes vuejs#1679 (vuejs#1707)
1 parent a9aa3de commit 20bbff0

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/config/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ module.exports = (api, options) => {
125125
// inject html plugin for the page
126126
const pageHtmlOptions = Object.assign({}, htmlOptions, {
127127
chunks: ['chunk-vendors', 'chunk-common', name],
128-
template: fs.existsSync(template) ? template : defaultHtmlPath,
128+
template: fs.existsSync(template) ? template : (fs.existsSync(htmlPath) ? htmlPath : defaultHtmlPath),
129129
filename
130130
})
131131

0 commit comments

Comments
 (0)