fix: default value for template path

This commit is contained in:
Pooya Parsa 2021-01-21 14:07:48 +01:00
parent 0ebab89014
commit a6936ff8c6

View File

@ -13,8 +13,9 @@ export default function (nuxt, moduleContainer) {
}
nuxt.options.build.transpile = nuxt.options.build.transpile || []
nuxt.options.build.transpile.push(nuxt.options.buildDir)
for (const pathKey of ['appTemplatePath', 'documentPath']) {
nuxt.options[pathKey] = nuxt.options[pathKey]
nuxt.options[pathKey] = (nuxt.options[pathKey] || '')
.replace(oldBuildDir, nuxt.options.buildDir)
}