chore: disable webpack fs cache

This commit is contained in:
Pooya Parsa 2021-04-28 16:50:41 +02:00
parent 7255a890a0
commit f723cc6fcd

View File

@ -169,19 +169,20 @@ function getCache (ctx: WebpackConfigContext): Configuration['cache'] {
return false return false
} }
return { // TODO: Disable for nuxt internal dev due to inconsistencies
name: ctx.name, // return {
type: 'filesystem', // name: ctx.name,
cacheDirectory: resolve(ctx.options.rootDir, 'node_modules/.cache/webpack'), // type: 'filesystem',
managedPaths: [ // cacheDirectory: resolve(ctx.options.rootDir, 'node_modules/.cache/webpack'),
...ctx.options.modulesDir // managedPaths: [
], // ...ctx.options.modulesDir
buildDependencies: { // ],
config: [ // buildDependencies: {
...ctx.options._nuxtConfigFiles // config: [
] // ...ctx.options._nuxtConfigFiles
} // ]
} // }
// }
} }
function getOutput (ctx: WebpackConfigContext): Configuration['output'] { function getOutput (ctx: WebpackConfigContext): Configuration['output'] {