mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 09:25:54 +00:00
chore: disable webpack fs cache
This commit is contained in:
parent
7255a890a0
commit
f723cc6fcd
@ -169,19 +169,20 @@ function getCache (ctx: WebpackConfigContext): Configuration['cache'] {
|
||||
return false
|
||||
}
|
||||
|
||||
return {
|
||||
name: ctx.name,
|
||||
type: 'filesystem',
|
||||
cacheDirectory: resolve(ctx.options.rootDir, 'node_modules/.cache/webpack'),
|
||||
managedPaths: [
|
||||
...ctx.options.modulesDir
|
||||
],
|
||||
buildDependencies: {
|
||||
config: [
|
||||
...ctx.options._nuxtConfigFiles
|
||||
]
|
||||
}
|
||||
}
|
||||
// TODO: Disable for nuxt internal dev due to inconsistencies
|
||||
// return {
|
||||
// name: ctx.name,
|
||||
// type: 'filesystem',
|
||||
// cacheDirectory: resolve(ctx.options.rootDir, 'node_modules/.cache/webpack'),
|
||||
// managedPaths: [
|
||||
// ...ctx.options.modulesDir
|
||||
// ],
|
||||
// buildDependencies: {
|
||||
// config: [
|
||||
// ...ctx.options._nuxtConfigFiles
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
function getOutput (ctx: WebpackConfigContext): Configuration['output'] {
|
||||
|
Loading…
Reference in New Issue
Block a user