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 = nuxt.options.build.transpile || []
|
||||||
nuxt.options.build.transpile.push(nuxt.options.buildDir)
|
nuxt.options.build.transpile.push(nuxt.options.buildDir)
|
||||||
nuxt.options.appTemplatePath = nuxt.options.appTemplatePath
|
for (const pathKey of ['appTemplatePath', 'documentPath']) {
|
||||||
.replace(oldBuildDir, nuxt.options.buildDir)
|
nuxt.options[pathKey] = nuxt.options[pathKey]
|
||||||
|
.replace(oldBuildDir, nuxt.options.buildDir)
|
||||||
|
}
|
||||||
|
|
||||||
// Create contexts
|
// Create contexts
|
||||||
const sigmaContext = getsigmaContext(nuxt.options, nuxt.options.sigma || {})
|
const sigmaContext = getsigmaContext(nuxt.options, nuxt.options.sigma || {})
|
||||||
|
Loading…
Reference in New Issue
Block a user