Skip to content

Commit 2c765b9

Browse files
authored
docs(Configuration): document cache.readonly (#6938)
1 parent b9c1ecc commit 2c765b9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/content/configuration/cache.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,23 @@ module.exports = {
376376
};
377377
```
378378

379+
### cache.readonly
380+
381+
`boolean` <Badge text='5.85.0' />
382+
383+
Prevent webpack from storing cache into file system. Only available when `cache.type === "filesystem"` and `cache.store === 'pack'`.
384+
385+
```js
386+
module.exports = {
387+
//...
388+
cache: {
389+
type: 'filesystem',
390+
store: 'pack',
391+
readonly: true,
392+
},
393+
};
394+
```
395+
379396
### cache.store
380397

381398
`string = 'pack': 'pack'`

0 commit comments

Comments
 (0)