mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(cli): don't use absolute path of .cache/nuxt
as transpilation pattern (#7775)
This commit is contained in:
parent
c2c6923ee4
commit
5f7d675807
@ -110,7 +110,9 @@ async function getNuxt (args, cmd) {
|
|||||||
config.buildDir = (config.static && config.static.cacheDir) || path.resolve(config.rootDir, 'node_modules/.cache/nuxt')
|
config.buildDir = (config.static && config.static.cacheDir) || path.resolve(config.rootDir, 'node_modules/.cache/nuxt')
|
||||||
config.build = config.build || {}
|
config.build = config.build || {}
|
||||||
config.build.transpile = config.build.transpile || []
|
config.build.transpile = config.build.transpile || []
|
||||||
config.build.transpile.push(config.buildDir)
|
if (!config.static || !config.static.cacheDir) {
|
||||||
|
config.build.transpile.push('.cache/nuxt')
|
||||||
|
}
|
||||||
|
|
||||||
const nuxt = await cmd.getNuxt(config)
|
const nuxt = await cmd.getNuxt(config)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user