Skip to content

Commit d1d2460

Browse files
docs: fix (#741)
1 parent 9f98a35 commit d1d2460

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ module.exports = {
730730

731731
##### `object`
732732

733-
Enables `transform` caching and setup cache directory and invalidation keys.
733+
Enables `transform` caching and setup invalidation keys.
734734

735735
**webpack.config.js**
736736

@@ -747,7 +747,6 @@ module.exports = {
747747
return optimize(content);
748748
},
749749
cache: {
750-
directory: path.resolve(__dirname, "cache-directory"),
751750
keys: {
752751
// May be useful for invalidating cache based on external values
753752
// For example, you can invalid cache based on `process.version` - { node: process.version }
@@ -781,7 +780,6 @@ module.exports = {
781780
return optimize(content);
782781
},
783782
cache: {
784-
directory: path.resolve(__dirname, "cache-directory"),
785783
keys: (defaultCacheKeys, absoluteFrom) => {
786784
const keys = getCustomCacheInvalidationKeysSync();
787785

@@ -816,7 +814,6 @@ module.exports = {
816814
return optimize(content);
817815
},
818816
cache: {
819-
directory: path.resolve(__dirname, "cache-directory"),
820817
keys: async (defaultCacheKeys, absoluteFrom) => {
821818
const keys = await getCustomCacheInvalidationKeysAsync();
822819

0 commit comments

Comments
 (0)