fix: update documentPath with updated buildDir (#70)

This commit is contained in:
Xin Du (Clark) 2021-01-20 22:08:54 +00:00 committed by GitHub
parent 6e9be0eece
commit 2186d953d0

View File

@ -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']) {
nuxt.options[pathKey] = nuxt.options[pathKey]
.replace(oldBuildDir, nuxt.options.buildDir) .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 || {})