fix: default html template, closes #1679 (#1707)

This commit is contained in:
Marvin
2018-07-04 19:14:05 +08:00
committed by Guillaume Chau
parent a9aa3decf6
commit 20bbff0c79
+1 -1
View File
@@ -125,7 +125,7 @@ module.exports = (api, options) => {
// inject html plugin for the page
const pageHtmlOptions = Object.assign({}, htmlOptions, {
chunks: ['chunk-vendors', 'chunk-common', name],
template: fs.existsSync(template) ? template : defaultHtmlPath,
template: fs.existsSync(template) ? template : (fs.existsSync(htmlPath) ? htmlPath : defaultHtmlPath),
filename
})