mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
fix: default value for template path
This commit is contained in:
parent
0ebab89014
commit
a6936ff8c6
@ -13,8 +13,9 @@ export default function (nuxt, moduleContainer) {
|
|||||||
}
|
}
|
||||||
nuxt.options.build.transpile = nuxt.options.build.transpile || []
|
nuxt.options.build.transpile = nuxt.options.build.transpile || []
|
||||||
nuxt.options.build.transpile.push(nuxt.options.buildDir)
|
nuxt.options.build.transpile.push(nuxt.options.buildDir)
|
||||||
|
|
||||||
for (const pathKey of ['appTemplatePath', 'documentPath']) {
|
for (const pathKey of ['appTemplatePath', 'documentPath']) {
|
||||||
nuxt.options[pathKey] = nuxt.options[pathKey]
|
nuxt.options[pathKey] = (nuxt.options[pathKey] || '')
|
||||||
.replace(oldBuildDir, nuxt.options.buildDir)
|
.replace(oldBuildDir, nuxt.options.buildDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user