diff --git a/src/content/configuration/cache.mdx b/src/content/configuration/cache.mdx index 53abe403143d..eb21a43ab4f5 100644 --- a/src/content/configuration/cache.mdx +++ b/src/content/configuration/cache.mdx @@ -376,6 +376,23 @@ module.exports = { }; ``` +### cache.readonly + +`boolean` + +Prevent webpack from storing cache into file system. Only available when `cache.type === "filesystem"` and `cache.store === 'pack'`. + +```js +module.exports = { + //... + cache: { + type: 'filesystem', + store: 'pack', + readonly: true, + }, +}; +``` + ### cache.store `string = 'pack': 'pack'`