Skip to content

Commit

Permalink
fix: default value for template path
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 21, 2021
1 parent 6da0e40 commit b334942
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module/nuxt2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit b334942

Please sign in to comment.