mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix: update documentPath with updated buildDir (#70)
This commit is contained in:
parent
6e9be0eece
commit
2186d953d0
@ -13,8 +13,10 @@ export default function (nuxt, moduleContainer) {
|
||||
}
|
||||
nuxt.options.build.transpile = nuxt.options.build.transpile || []
|
||||
nuxt.options.build.transpile.push(nuxt.options.buildDir)
|
||||
nuxt.options.appTemplatePath = nuxt.options.appTemplatePath
|
||||
.replace(oldBuildDir, nuxt.options.buildDir)
|
||||
for (const pathKey of ['appTemplatePath', 'documentPath']) {
|
||||
nuxt.options[pathKey] = nuxt.options[pathKey]
|
||||
.replace(oldBuildDir, nuxt.options.buildDir)
|
||||
}
|
||||
|
||||
// Create contexts
|
||||
const sigmaContext = getsigmaContext(nuxt.options, nuxt.options.sigma || {})
|
||||
|
Loading…
Reference in New Issue
Block a user